Skip to content

Security: pin GitHub Actions to SHA hashes#829

Merged
jorgebraz merged 2 commits intomasterfrom
security/pin-actions-to-sha
Mar 25, 2026
Merged

Security: pin GitHub Actions to SHA hashes#829
jorgebraz merged 2 commits intomasterfrom
security/pin-actions-to-sha

Conversation

@jorgebraz
Copy link
Contributor

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

codacy-production bot commented Mar 24, 2026

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

@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 hardens the repository's security posture by pinning GitHub Actions to immutable SHA hashes, protecting against potential supply chain attacks. While the implementation satisfies the primary objective, there is a critical version mismatch for the 'actions/github-script' action across all modified workflows. The commit SHA provided points to version 3.x, which contradicts the '# v2.0.0' comments. This should be corrected before merging to avoid potential breaking changes introduced in v3.x while the team expects v2.x behavior.

About this PR

  • There is a recurring inconsistency between the commit SHAs and the version comments for 'actions/github-script'. Please ensure that the SHA hash used actually matches the version tag documented in the code comments to prevent unintended upgrades to major versions with breaking changes.

Test suggestions

  • Verify 'actions/github-script' is pinned to SHA hash in all three workflow files.
  • Verify 'atlassian/gajira-login' is pinned to SHA hash across all workflows.
  • Verify 'atlassian/gajira-create' is pinned to SHA hash in create_issue workflows.
  • Verify 'atlassian/gajira-comment' is pinned to SHA hash in comment_issue.yml.

🗒️ Improve review quality by adding custom instructions

@jorgebraz jorgebraz merged commit 355015d into master Mar 25, 2026
9 checks passed
@jorgebraz jorgebraz deleted the security/pin-actions-to-sha branch March 25, 2026 10:22
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.

2 participants