Skip to content

fix: pin trivy-action and setup-trivy to commit SHAs#3035

Merged
ukanga merged 5 commits intomainfrom
trivy-actions-update
Mar 24, 2026
Merged

fix: pin trivy-action and setup-trivy to commit SHAs#3035
ukanga merged 5 commits intomainfrom
trivy-actions-update

Conversation

@FrankApiyo
Copy link
Copy Markdown
Member

Pin to immutable commit hashes instead of mutable tags to mitigate supply-chain risk from the Trivy security incident (2026-03-19).

  • trivy-action: 57a97c7e (v0.35.0)
  • setup-trivy: 3fb12ec1 (v0.2.6)

Ref: aquasecurity/trivy#10425

Pin to immutable commit hashes instead of mutable tags to mitigate
supply-chain risk from the Trivy security incident (2026-03-19).

- trivy-action: 57a97c7e (v0.35.0)
- setup-trivy: 3fb12ec1 (v0.2.6)

Ref: aquasecurity/trivy#10425
ukanga added 3 commits March 24, 2026 16:44
Upgrade trivy binary from v0.69.1 to v0.69.3 (latest safe
release). Pin all remaining GitHub Actions to immutable commit
SHAs to prevent supply chain attacks via mutable tag refs.

Ref: GHSA-69fq-xp46-6x23
Pin all third-party GitHub Actions to immutable commit SHAs
in docker-image-build.yml and ecr-image-build-alpine.yml to
prevent supply chain attacks via mutable tag references.
Enable weekly automated PRs for GitHub Actions version
updates to keep SHA pins current.
uses: aquasecurity/setup-trivy@v0.2.6
uses: aquasecurity/setup-trivy@3fb12ec12f41e471780db15c232d5dd185dcb514 # v0.2.6
with:
version: v0.69.1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

v0.69.3?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@kelvin-muchiri This is the latest version and hash for setup-trivy, see https://github.com/aquasecurity/setup-trivy/releases/tag/v0.2.6.

uses: aquasecurity/trivy-action@c1824fd6edce30d7ab345a9989de00bbd46ef284 # v0.34.0
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
with:
version: "v0.69.1"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

v0.69.3?

uses: aquasecurity/trivy-action@c1824fd6edce30d7ab345a9989de00bbd46ef284 # v0.34.0
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
with:
version: "v0.69.1"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

v0.69.3?

uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
if: github.event_name == 'pull_request' || github.event_name == 'push'
with:
version: "v0.69.1"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

V0.69.3?

uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
if: github.event_name == 'pull_request' || github.event_name == 'push'
with:
version: "v0.69.1"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

v0.69.3?

uses: aquasecurity/setup-trivy@3fb12ec12f41e471780db15c232d5dd185dcb514 # v0.2.6
if: github.event_name == 'pull_request' || github.event_name == 'push'
with:
version: v0.69.1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

v0.69.3?

uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
if: github.event_name == 'pull_request' || github.event_name == 'push'
with:
version: "v0.69.1"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

v0.69.3?

uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
if: github.event_name == 'pull_request' || github.event_name == 'push'
with:
version: "v0.69.1"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

v0.69.3?

uses: aquasecurity/setup-trivy@3fb12ec12f41e471780db15c232d5dd185dcb514 # v0.2.6
if: github.event_name == 'pull_request' || github.event_name == 'push'
with:
version: v0.69.1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

v0.69.3?


- name: Install Trivy
uses: aquasecurity/setup-trivy@v0.2.6
uses: aquasecurity/setup-trivy@3fb12ec12f41e471780db15c232d5dd185dcb514 # v0.2.6
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

v0.69.3?


- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@c1824fd6edce30d7ab345a9989de00bbd46ef284 # v0.34.0
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

v0.69.3?


- name: Run Trivy vulnerability scanner (HTML report)
uses: aquasecurity/trivy-action@c1824fd6edce30d7ab345a9989de00bbd46ef284 # v0.34.0
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

v0.69.3?

…n-v2

Fix/trivy supply chain remediation v2
@ukanga ukanga merged commit 6e45f55 into main Mar 24, 2026
12 checks passed
@ukanga ukanga deleted the trivy-actions-update branch March 24, 2026 16:23
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.

3 participants