-
Notifications
You must be signed in to change notification settings - Fork 578
🌱 security: pin GitHub Actions to commit hashes #4678
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
🌱 security: pin GitHub Actions to commit hashes #4678
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to double check the source, but we intentionally pin to a tag here due to a requirement from the slsa-verifier. All of our other action usages are pinned.
Hi @spencerschrock It's safe to pin by hash now. See an example here https://github.com/ramonpetgrave/my-example-gradle-project/actions/runs/15931641240/job/44941968699?pr=13 What's still not okay to pin by hash are the reusable workflows in slsa-github-generator. |
Also can you fix DCO and ensure any follow-up commits follow the practice? |
Pinning by commit is ok for this action
Pin GitHub Actions to commit hashes for improved security and reproducible builds Signed-off-by: harekrishnarai <786hkr@gmail.com>
- Update slsa-framework/slsa-verifier/actions/installer to v2.7.1 - Use commit hash ea584f4502babc6f60d9bc799dbbb13c1caa9ee6 - Remove date comment as suggested by reviewer Signed-off-by: harekrishnarai <786hkr@gmail.com>
c2a6b67
to
bd3df6d
Compare
Issues resolved:
The PR now addresses all review feedback and is ready for re-review. Thank you @spencerschrock for the guidance! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4678 +/- ##
==========================================
+ Coverage 66.80% 68.29% +1.48%
==========================================
Files 230 249 +19
Lines 16602 18884 +2282
==========================================
+ Hits 11091 12896 +1805
- Misses 4808 5129 +321
- Partials 703 859 +156 🚀 New features to boost your workflow:
|
@spencerschrock I just updated this branch with main branch, if possible, could you please approve to run the workflows, so that we can proceed to merge? |
What
This pull request pins all GitHub Actions in workflow files to specific commit hashes to improve security and ensure reproducible builds. kind of change does this PR introduce?
(Is it a bug fix, feature, docs update, something else?)
What
This pull request pins all GitHub Actions in workflow files to specific commit hashes to improve security and ensure reproducible builds. is the current behavior?
What
This pull request pins all GitHub Actions in workflow files to specific commit hashes to improve security and ensure reproducible builds. is the new behavior (if this is a feature change)?**
Which issue(s) this PR fixes
Special notes for your reviewer
Does this PR introduce a user-facing change?
For user-facing changes, please add a concise, human-readable release note to
the
release-note
(In particular, describe what changes users might need to make in their
application as a result of this pull request.)