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

Hash-pinning github-actions #72

Open
krassowski opened this issue Dec 19, 2023 · 6 comments
Open

Hash-pinning github-actions #72

krassowski opened this issue Dec 19, 2023 · 6 comments

Comments

@krassowski
Copy link
Member

Just highlighting the discussion in jupyter/notebook#7153

@krassowski
Copy link
Member Author

Could we enforce hash-pinning in way of #89?

@krassowski
Copy link
Member Author

For context an action used in jupyterlab was compromised and hash-pinning would have helped:

I would also like to join the security group as mentioned a month ago in #86 (comment) and be able to have more of a say/mandate in pushing for security. Is there a form to apply or something?

@Carreau
Copy link
Member

Carreau commented Mar 15, 2025

i opened a sec advisory on lab and lumino. Yes we should has pin. I believe there are tools in the scientific-python org that check for that.

I want to note that hash pinning is not that helpful if we rely too blindly on depends of and automatic upgrade, but at least it delays it.

@krassowski
Copy link
Member Author

krassowski commented Mar 15, 2025

I believe there are tools in the scientific-python org that check for that.

Hmm, I do not see it (but it would be super useful). Going by https://github.com/scientific-python/cookie it actually seems to go in the other direction of ensuring evergreen actions:

  • GH210: Maintains the GitHub action versions with Dependabot
  • GH211: Do not pin core actions as major versions
  • GH212: Require GHA update grouping

@krassowski
Copy link
Member Author

krassowski commented Mar 15, 2025

Some more research: even pinning action X does not guarantee safety as if it depends on action Y which is not pinned, even pinned X will be executed with unpinned Y as per discussion in actions/runner#2195.

@Carreau
Copy link
Member

Carreau commented Mar 15, 2025

pinning at least limit supply chain attacks up to the first non-pinned dependency...

And I think I was thinking about https://scientific-python.org/specs/spec-0008/

(BTW if you wish I think a Pr to spec 8 that links to these kind of supply chain attacks would be a great addition)

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

2 participants