Skip to content

Security: pin GitHub Actions to SHA hashes#2

Open
jorgebraz wants to merge 1 commit intomainfrom
security/pin-actions-to-sha
Open

Security: pin GitHub Actions to SHA hashes#2
jorgebraz wants to merge 1 commit intomainfrom
security/pin-actions-to-sha

Conversation

@jorgebraz
Copy link
Copy Markdown

Pins all GitHub Actions from mutable tags/branches to immutable SHA hashes.

This prevents supply chain attacks like the TeamPCP/Trivy incident (March 2026), where attackers force-pushed tags to point at malicious commits.

Auto-generated by the Codacy security audit script.

Replaces mutable tag/branch references with immutable SHA hashes
to prevent supply chain attacks (ref: TeamPCP/Trivy March 2026).

Actions left as tags: 0
@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes. Give us feedback

Copy link
Copy Markdown

@codacy-production codacy-production bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR successfully addresses the security objective of pinning GitHub Actions to immutable SHA hashes to prevent supply chain attacks. Codacy analysis indicates that the changes are up to standards, with no new issues, complexity increases, or duplication. However, the review identified a need for verification: it must be confirmed that the specific hashes used correspond to the intended 'v4' versions of the actions. Additionally, the updated workflows should be executed to ensure no regressions were introduced by the pinning.

About this PR

  • Verify that the provided SHA hashes correspond accurately to the 'v4' release of the respective GitHub Actions. Using unverified hashes risks pinning to incorrect versions or untrusted commits.

Test suggestions

  • Verify that the specified SHA hashes correctly resolve to the intended action versions (v4)
  • Execute the updated CI and Publish workflows to ensure no breakage after pinning
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify that the specified SHA hashes correctly resolve to the intended action versions (v4)
2. Execute the updated CI and Publish workflows to ensure no breakage after pinning

🗒️ Improve review quality by adding custom instructions

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

Successfully merging this pull request may close these issues.

1 participant