Skip to content

Update Trivy GitHub Action to v0.35.0#2031

Merged
mattisonchao merged 1 commit intomasterfrom
codex/trivy-action-v0.35.0
Mar 23, 2026
Merged

Update Trivy GitHub Action to v0.35.0#2031
mattisonchao merged 1 commit intomasterfrom
codex/trivy-action-v0.35.0

Conversation

@shibd
Copy link
Copy Markdown
Member

@shibd shibd commented Mar 23, 2026

Summary

  • replace aquasecurity/trivy-action@master with aquasecurity/trivy-action@v0.35.0
  • stop using the mutable master ref after the recent Trivy GitHub Action security incident

Testing

  • workflow reference update only

@shibd shibd requested review from a team, mattisonchao, nlu90 and zymap as code owners March 23, 2026 01:00
@github-actions
Copy link
Copy Markdown

@shibd:Thanks for your contribution. For this PR, do we need to update docs?
(The PR template contains info about doc, which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)

@github-actions github-actions bot added the doc-info-missing This pr needs to mark a document option in description label Mar 23, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 521a4ceb3b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
uses: aquasecurity/trivy-action@v0.35.0
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Pin Trivy action to a full commit SHA

Replacing @master with @v0.35.0 still leaves this workflow consuming a mutable third-party ref. GitHub’s secure-use docs say a full commit SHA is “the only way to use an action as an immutable release” and explicitly note that tags can be moved or deleted, so if Aqua retargets v0.35.0 (or their repo is compromised again) this PR job will execute different code than the release you reviewed. To actually remove the supply-chain exposure this change is addressing, pin the vetted v0.35.0 commit SHA instead.

Useful? React with 👍 / 👎.

@mattisonchao mattisonchao merged commit bab7723 into master Mar 23, 2026
11 checks passed
@mattisonchao mattisonchao deleted the codex/trivy-action-v0.35.0 branch March 23, 2026 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-info-missing This pr needs to mark a document option in description

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants