Description
What's the problem this feature will solve?
When developing with CI workflows, it's common to version-pin dependencies (i.e. actions/checkout@v3
). However, version tags are mutable, so a malicious attacker could overwrite a version tag to point to a malicious or vulnerable commit instead.
Describe the solution you'd like
Pinning workflow dependencies by hash ensures the dependency is immutable and its behavior is guaranteed.
These hashes can be automatically updated by dependabot. Whenever a new version of an Action is released, you'll receive a PR updating both its hash and the version comment (see this repo as an example).
I'll send a PR along with this issue to hash-pin the Actions and configure Dependabot to keep them updated.
Alternative Solutions
No response
Additional context
My name is Pedro, and I work with Google and the OpenSSF to improve the security of open-source projects. My colleague Joyce has made some contributions to this project already (see #3833 and – indirectly – a731056).
Code of Conduct
- I agree to follow the PSF Code of Conduct