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

Why you should pin your GitHub Actions by commit-hash #49

Open
utterances-bot opened this issue Jul 14, 2023 · 6 comments
Open

Why you should pin your GitHub Actions by commit-hash #49

utterances-bot opened this issue Jul 14, 2023 · 6 comments

Comments

@utterances-bot
Copy link

Why you should pin your GitHub Actions by commit-hash

A tech blog focused on Application Performance and Software Architecture. The Front-end is just JSON over here.

https://blog.rafaelgss.dev/why-you-should-pin-actions-by-commit-hash

Copy link

dreua commented Jul 14, 2023

Thank you for the article! It makes sense and maybe should become the default. Are there any known attacks using this method?

Copy link
Owner

Hi @dreua! The attack vector is the supply chain attack one mentioned in the blog post

Copy link

@RafaelGSS it would be interesting to know if there was any known real incident using this attack vector. I think that's what dreua wanted to know as well.

@dreua
Copy link

dreua commented Jan 30, 2024

What I wonder additionally is whether it is possible to get automatic updates with pinned hashes. Dependabot is really great with checking your used actions and creating PRs for updates. Not sure if it us a worthy trade to use pinned outdated Actions but never get them updated. (Assuming you can't get both and have someone or some bot to help with updating the pins.)

@RafaelGSS
Copy link
Owner

@RafaelGSS it would be interesting to know if there was any known real incident using this attack vector. I think that's what dreua wanted to know as well.

I know a few real incidents, but I don't have references to share them.

What I wonder additionally is whether it is possible to get automatic updates with pinned hashes. Dependabot is really great with checking your used actions and creating PRs for updates

Dependabot automatically updates it. See nodejs/node#51334

@TWiStErRob
Copy link

Renovate also does it: detekt/detekt@fde578d
Config: https://docs.renovatebot.com/presets-config/#configbest-practices

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

No branches or pull requests

4 participants