-
Notifications
You must be signed in to change notification settings - Fork 30
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 security of GitHub Actions CI/CD #200
Comments
Just recording a tentative todo list here:
|
So I'm thinking that it's probably going overboard to fail CI if there's a new release in one of our actions. We only really care if there's a new release when there's a security vulnerability. For Rust dependencies, we rely on Thoughts? |
Yeah, failing CI seems a bit overboard. I've found the following docs: https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/keeping-your-actions-up-to-date-with-dependabot#enabling-dependabot-version-updates-for-actions So we should actually be able to easily check for updates to the actions via. Dependabot. We simply have to add the additional parameters to the Seems like a good approach, anything I'm missing? |
Also, nice with the added todo-list, for things that can't really be tracked with commits. |
I'll read up on dependabot. Seems like a good solution. |
We'll have to remember to delete the stored token once the changes are applied and it's not used at all anymore. |
Re-opening due to remaining TODO and PR #232 |
Brian Smith has done some pretty interesting investigations into the default security of GitHub Actions at briansmith/untrusted#50 and how to harden these. I'd like for us to re-trace some (if not all) of the steps there and see which can be implemented for our CI/CD.
I was surprised to see that default permissions for GitHub Actions are read+write for a repository. We should be able to change this to read-only without breaking the current CI/CD.
The official GitHub documentation for this: https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions
Eg. setting read-only for an Action:
TODO:
The text was updated successfully, but these errors were encountered: