Skip to content

Instantly share code, notes, and snippets.

@stjohnjohnson
Last active March 14, 2019 22:56
Show Gist options
  • Save stjohnjohnson/7f8248f7955f6cb8188e2431df2b6370 to your computer and use it in GitHub Desktop.
Save stjohnjohnson/7f8248f7955f6cb8188e2431df2b6370 to your computer and use it in GitHub Desktop.
---
# GET /v3/secrets/e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4
id: e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4
# upper-case only (as they are environment variables)
name: NPM_TOKEN
# secret should be iron encrypted
value: aHVudGVyMg==
# variable or ssh-key
type: variable
# system, pipeline, or job
scope: pipeline
scopeId: 992b5d666718483c9676361ebc685d122089e3eb
flags:
# should a PR get this secret
pr: true
# what about a PR that's a fork
fork: false
---
# Also support jobId= and buildId=
# GET /v3/secrets?pipelineId=992b5d666718483c9676361ebc685d122089e3eb
- id: e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4
name: NPM_TOKEN
type: variable
scope: pipeline
scopeId: 992b5d666718483c9676361ebc685d122089e3eb
flags:
pr: true
fork: false
- id: 8e2ad3b8e7ee8cdf34d66b120fae70625ab1a4ae
name: GIT_KEY
type: ssh-key
scope: pipeline
scopeId: 992b5d666718483c9676361ebc685d122089e3eb
flags:
pr: false
fork: false
@shtrom
Copy link

shtrom commented Mar 14, 2019

That iron encryption seems great. All I can see is **********==.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment