Skip to content

fix(ci): pin trivy-action to SHA after supply chain attack#8

Merged
barad1tos merged 1 commit into
masterfrom
security/pin-trivy-action
Mar 20, 2026
Merged

fix(ci): pin trivy-action to SHA after supply chain attack#8
barad1tos merged 1 commit into
masterfrom
security/pin-trivy-action

Conversation

@barad1tos

@barad1tos barad1tos commented Mar 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • HIGH: aquasecurity/trivy-action was compromised on 2026-03-19 (~19:00 UTC)
  • Attackers force-pushed malicious code to 75 of 76 version tags (v0.0.1–v0.34.2) and master
  • The malicious entrypoint.sh exfiltrates CI secrets to attacker-controlled infrastructure
  • This repo used @0.28.0 (5 occurrences across ci.yml and docker-build.yml) — in compromised range
  • No secrets were leaked — no CI runs occurred after the compromise timestamp

Changes

Pin all 5 aquasecurity/trivy-action references from @0.28.0 to the SHA of v0.35.0 (57a97c7e), the only tag left untouched by attackers. SHA pinning prevents future tag-based attacks.

Files modified

  • .github/workflows/ci.yml — 3 occurrences
  • .github/workflows/docker-build.yml — 2 occurrences

Test plan

  • Verify no @0.28.0 or other version-tag references remain: grep -r "trivy-action" .github/
  • CI workflow runs successfully with the pinned SHA
  • Docker build workflow runs successfully with the pinned SHA

supply chain compromise

- Replace @0.28.0 refs with v0.35.0 SHA
  (57a97c7e) in ci.yml (3) and
  docker-build.yml (2)
- Tags v0.0.1-v0.34.2 were force-pushed
  with malicious code on 2026-03-19
- No secrets leaked, no CI ran after
  compromise timestamp

Impact: CI no longer references
compromised action tags
@barad1tos barad1tos merged commit cff7867 into master Mar 20, 2026
8 checks passed
@barad1tos

Copy link
Copy Markdown
Collaborator Author

🎉 This PR is included in version 3.27.6 🎉

The release is available on GitHub release

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.

1 participant