-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add helpers:pinGitHubActionDigests
to config:base
#11987
Comments
We try not to be too opinionated with |
I don't think this should replace the existing We could make a new helper preset |
So at most I think I'd want to default it for non-github actions only, but I'm still not even convinced of that. @JamieMagee what's your opinion? |
I like the idea, and it's a best security practice, but I agree that we don't want to be too opinionated about the base preset. We did receive some strong feedback around the dashboard becoming default 😅 I really wish we could A/B test these sort of sweeping default changes 🤔 As for 1st party (GitHub) vs 3rd party (non-GitHub) actions, they should be treated the same IMO. It falls in the category of zero trust. |
How about we create a
If we don't want to add a new preset, how about we add a new section to the docs somewhere suitable, and explain that it's a good idea to pin all your actions? That way we surface the best-practice, without forcing it on our users via the |
BTW I was already thinking that |
How about |
Would
Edit: I've created a new issue to track the |
I like |
I think we now want to include Maybe we can close this issue as not planned? |
What would you like Renovate to be able to do?
It's a good idea to pin your GitHub Actions to a SHA1 hash, to prevent a malicious attacker from changing the Git tags, and pointing to a corrupted version of the action. This is a strong recommendation for third-party actions. Might not be so important for first-party actions.
Maybe it's a good idea to add
helpers:pinGitHubActionDigests
preset to ourconfig:base
preset, so that people follow this best-practice automatically? See the Renovate docs, helper presets,helpers:pinGitHubActionDigests
to learn more about the preset.Relevant quote from the GitHub Docs, security hardening for GitHub Actions, using third party actions:
If you have any ideas on how this should be implemented, please tell us here.
helpers:pinGitHubActionDigests
toconfig:base
Is this a feature you are interested in implementing yourself?
No
The text was updated successfully, but these errors were encountered: