cnb:destroy-token
About 138 wordsLess than 1 minute
cnb:destroy-token
A CNB_TOKEN is created before the pipeline starts and is destroyed after it ends. Use this task to proactively destroy the CNB_TOKEN and remove this environment variable.
Applicable Events
Parameters
None
Output
None
Configuration Examples
Proactively destroy the CNB_TOKEN after use in the pipeline to reduce the risk of CNB_TOKEN misuse.
.cnb.yml
main:
push:
- stages:
- name: use CNB_TOKEN
script: echo "Make API calls using the CNB_TOKEN."
- name: destroy token
type: cnb:destroy-token