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

[grace-hopper-day] Pin Github Actions by commit-hash - nodejs/node-gyp #1109

Closed
RafaelGSS opened this issue Sep 16, 2023 · 0 comments
Closed

Comments

@RafaelGSS
Copy link
Member

RafaelGSS commented Sep 16, 2023

Pin Actions to a full length commit SHA

Repository: https://github.com/nodejs/node-gyp

Why is this needed?

Before and After the fix

Before the fix, your workflow may look like this (use of v1 and latest tags)

After the fix, Secure-Repo pins each Action and docker image to an immutable checksum.

Pull request example: electron/electron#36343

In this pull request, the workflow file has the GitHub Actions tags pinned automatically to their full-length commit SHA.

Screenshot of Action pinned to commit SHA


From: https://github.com/step-security/secure-repo#3-pin-actions-to-a-full-length-commit-sha

@RafaelGSS RafaelGSS changed the title [grace-hopper-day] Pin Github Actions by commit-hash - nodejs/gyp [grace-hopper-day] Pin Github Actions by commit-hash - nodejs/node-gyp Sep 16, 2023
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

1 participant