-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep publish secrets scoped to specific steps #92
Conversation
Actually, we can do even better here and keep them scoped to the specific steps maybe. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't reduce the malicious threat vector much, but it reduces the stupid threat vector, and that's a good thing.
This reverts commit f3f3fdc.
Huh. I must have broke the workflows? |
.github/workflows/ci.yml
Outdated
@@ -132,17 +128,26 @@ jobs: | |||
rm targets.tar | |||
|
|||
- name: Import signing key | |||
if: env.PGP_SECRET != '' && env.PGP_PASSPHRASE == '' | |||
if: secrets.PGP_SECRET != '' && secrets.PGP_PASSPHRASE == '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Secrets can't be used in conditionals. I'm not sure if we can use env here if we only set it for this step (not sure what happens first).
Not 100% convinced but let's see what happens on main. |
Currently, they are available in the entire workflow. This adds a new setting
githubWorkflowPublishEnv
that allows us to scope these secrets to only the publish job which should be the only place they are used.Technically a breaking change if someone was relying on the old global scoping.