Skip to content
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

Harden GitHub Actions workflows #377

Merged
merged 1 commit into from
Nov 24, 2024
Merged

Harden GitHub Actions workflows #377

merged 1 commit into from
Nov 24, 2024

Conversation

ericcornelissen
Copy link
Owner

Summary

Update all GitHub Actions workflows following an analysis by zizmor. In particular, this avoids persisting git credentials when the job does not need it (which I believe is all jobs).

Zizmor did have one more concern - overly permissive permissions: read-all - but this was not addressed because I think this is okay, the project is entirely open so I don't see a risk of an attacker reading anything.

Interestingly, this was already the case for the website.yml workflow since #173.

@ericcornelissen ericcornelissen added ci/cd Relates to ci/cd security Relates to security labels Nov 23, 2024
Update all GitHub Actions workflows following an analysis by zizmor
(https://github.com/woodruffw/zizmor). In particular, this avoids
persisting git credentials when the job does not need it (which I
believe is all jobs).

Zizmor did have one more concern - overly permissive
`permissions: read-all` - but this was not addressed because I think
this is okay, the project is entirely open so I don't see a risk of
an attacker reading anything.

Signed-off-by: Eric Cornelissen <ericornelissen@gmail.com>
@ericcornelissen ericcornelissen enabled auto-merge (rebase) November 24, 2024 21:01
@ericcornelissen ericcornelissen merged commit c4594c3 into main Nov 24, 2024
19 checks passed
@ericcornelissen ericcornelissen deleted the harden-ghaw branch November 24, 2024 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/cd Relates to ci/cd security Relates to security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant