Skip to content

fix(ci-cd): pin trivy-action to immutable digest instead of mutable tagit SHA for trivy-action - #34

Merged
a-ganguly merged 2 commits into
masterfrom
fix/trivy-attack
Aug 15, 2026
Merged

fix(ci-cd): pin trivy-action to immutable digest instead of mutable tagit SHA for trivy-action#34
a-ganguly merged 2 commits into
masterfrom
fix/trivy-attack

Conversation

@piyushsinghgaur1

Copy link
Copy Markdown
Contributor

Description

Pins aquasecurity/trivy-action in the Trivy vulnerability scan workflow to its commit SHA (57a97c7e7821a5776cebc9bb87c984fa69cba8f1, corresponding to v0.35.0) instead of referencing the mutable version tag @0.35.0.

Why

Mutable tags can be repointed to a different commit after the fact (accidentally or maliciously), which is a supply-chain risk for anything running in CI. Pinning to the immutable commit SHA ensures the exact reviewed/audited code is what actually runs, while the # v0.35.0 comment keeps the version human-readable.

Changes

  • .github/workflows/trivy.yaml: updated the uses: reference for the Trivy scan step from aquasecurity/trivy-action@0.35.0 to aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0

@piyushsinghgaur1 piyushsinghgaur1 changed the title fix(ci-cd): Replace mutable tag with full commfix(ci-cd): pin trivy-action to immutable digest instead of mutable tagit SHA for trivy-action fix(ci-cd): pin trivy-action to immutable digest instead of mutable tagit SHA for trivy-action Aug 15, 2026
fix trivy vulnerability
@piyushsinghgaur1 piyushsinghgaur1 self-assigned this Aug 15, 2026
@sonarqubecloud

Copy link
Copy Markdown

@a-ganguly
a-ganguly merged commit 4db35d2 into master Aug 15, 2026
6 checks passed
@yeshamavani

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 3.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants