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

feat(renovate): configure renovate to pin GitHub Actions digests #9

Closed
oscard0m opened this issue Jul 8, 2022 · 0 comments · Fixed by #10
Closed

feat(renovate): configure renovate to pin GitHub Actions digests #9

oscard0m opened this issue Jul 8, 2022 · 0 comments · Fixed by #10
Labels
enhancement New feature or request

Comments

@oscard0m
Copy link
Collaborator

oscard0m commented Jul 8, 2022

This adds the helpers:pinGitHubActionDigests configuration1. It will pin GitHub actions tags to digests. For example actions/checkout@v3.0.2 would become actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2

This is recommended by GitHub's security hardening for GitHub actions guide2:

Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload.

Context

Inspired by: octokit/.github#9

Footnotes


Footnotes

  1. https://docs.renovatebot.com/presets-helpers/#helperspingithubactiondigests

  2. https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-third-party-actions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant