Short answer
- GitHub's advisory GHSA-69fq-xp46-6x23 is rated Critical and was published Mar 21, 2026. It says that on March 19, 2026 “76 of 77 version tags in aquasecurity/trivy-action” were force-pushed to malicious commits, and “all 7 tags in aquasecurity/setup-trivy” were replaced. A tag is a label that can be moved. A full commit SHA is not.
- The advisory tells readers to pin Actions to full commit SHAs. It also shows pinning alone was not a full defence: a trivy-action commit pinned before 2025-04-09 was safe itself but pulled in a malicious setup-trivy.
- GitHub's secure-use page leads with workflow dependency lockfiles and treats SHA pinning as the fallback for repositories that cannot adopt one. If any compromised version may have run in your pipeline, rotate the secrets it could reach.
What happened?
Harbor read the advisory on Oct 27, 2026 (Pacific time). It may have been updated since. Read the live advisory before you act on anything here.
The summary says that on March 19, 2026 “a threat actor used compromised credentials to publish a malicious Trivy v0.69.4 release, force-push 76 of 77 version tags in aquasecurity/trivy-action to credential-stealing malware, and replace all 7 tags in aquasecurity/setup-trivy with malicious commits.”
The advisory's exposure window table gives these start and end times in UTC. Harbor converted them to Pacific time. The advisory marks them as approximate.
- trivy-action: from “2026-03-19 ~17:43” to “2026-03-20 ~05:40,” about 12 hours. In Pacific time that is about 10:43 a.m. to 10:40 p.m. on March 19.
- setup-trivy: from about 17:43 UTC to about 21:44 UTC on March 19, or about 10:43 a.m. to 2:44 p.m. Pacific.
- The Trivy v0.69.4 binary: about 18:22 to 21:42 UTC on March 19, or about 11:22 a.m. to 2:42 p.m. Pacific.
The advisory also covers malicious Docker Hub images for v0.69.5 and v0.69.6 on March 22. This guide focuses on the Actions.
What did the malicious code do?
The advisory says the tags pointed to “malicious commits that injected an infostealer into entrypoint.sh.” It lists what the code did, including “Sweeps 50+ filesystem paths for SSH keys, AWS/GCP/Azure credentials, Kubernetes tokens, Docker configs, .env files, database credentials, and cryptocurrency wallets.” If sending the data out failed, it could create a public repository named tpcp-docs on the victim's GitHub account.
Harbor found no victim count in the advisory and gives none here.
How did the attacker get in?
The advisory calls this “a continuation of the supply chain attack that began in late February 2026.” It says “credential rotation was performed but was not atomic (not all credentials were revoked simultaneously).” That is a lesson for any team that rotates secrets.
Why were tags the weak point?
A workflow that says uses: owner/action@v1 trusts whatever that tag points to on the day the job runs. GitHub says so directly: “a tag can be moved or deleted if a bad actor gains access to the repository storing the action” (GitHub secure use).
Per the advisory, you were affected if you used “Any tags prior except 0.35.0 (0.0.1 - 0.34.2)” of trivy-action. For setup-trivy, “Any version without pinning.” Version 0.35.0 “is protected by GitHub's immutable releases feature (enabled March 4, before 0.35.0 was published).”
Is pinning to a SHA enough?
The advisory lists “SHA pinning to a safe commit” among the ways not to be affected. Its recommended actions say: “Pin GitHub Actions to full, immutable commit SHA hashes, don't use mutable version tags.”
It also gives an exception. Quoted in full: “If you pinned trivy-action to a commit prior to that PR (merged 2025-04-09), then you would get a safe trivy-action but it would get a malicious setup-trivy, if invoked during the setup-trivy exposure window.”
So a pin protects the code at that commit. It does not protect what that code fetches later. Harbor's view: when you pin an action, open its action.yml at that commit and read its own uses: lines. If it calls another action by tag, your pin does not cover that one.
What does GitHub recommend?
GitHub's secure-use page puts lockfiles first. It says: “The best measure is to lock your workflow dependencies with a lockfile.” A lockfile “records the exact commit for every action your workflows depend on, including transitive dependencies, and verifies the identity of each source repository at run time.” GitHub calls this “the strongest protection available” and says it “supersedes SHA pinning for repositories that adopt it.” See GitHub's own page on workflow dependency lockfiles for how to set one up. Harbor did not read that page.
For everyone else: “For repositories that cannot adopt a lockfile, you can: Pin actions to a full-length commit SHA.” GitHub adds: “When selecting a SHA, you should verify it is from the action's repository and not a repository fork.”
GitHub also warns: “Regardless of your measures, always audit the source code of the action.”
Pinned SHAs go stale. GitHub says you can use Dependabot “to ensure that references to actions and reusable workflows used in your repository are kept up to date.” Harbor's view: read each update pull request before you merge it.
How to pin, step by step
Harbor's view:
- List every third-party reference: search
.github/workflowsforuses:lines. Include reusable workflows. - For each one, open the action's own repository and find the release you want. Copy the full 40-character commit SHA, not a short one.
- Check that the repository owner is the original author and not a fork. GitHub says to verify the SHA “is from the action's repository and not a repository fork.”
- Write the line as
uses: owner/action@<full SHA> # v1.2.3. The comment keeps the version readable for the next person. - Open the pinned action's
action.ymland read its ownuses:lines, as above. - Turn on Dependabot for your workflows so pins move forward through pull requests you review.
GitHub explains why a SHA is harder to fake than a tag: a bad actor “would need to generate a SHA-1 collision for a valid Git object payload.”
What to check this week
Everything in items 1 to 6 comes from the advisory's recommended actions.
- Find every workflow that uses trivy-action or setup-trivy. The advisory says to “Review all workflows using aquasecurity/trivy-action or aquasecurity/setup-trivy.”
- Read your run logs. The advisory says: “Check workflow run logs from March 19-20, 2026 for signs of compromise.”
- Check whether anything pulled Trivy v0.69.4.
- Search your GitHub organization. The advisory says: “Look for repositories named tpcp-docs in your GitHub organization.”
- Rotate. The advisory says that if a compromised version may have run, “all secrets accessible to affected pipelines must be treated as exposed and rotated immediately.” Revoke old credentials all at once.
- Move to the safe versions in its table: “trivy-action v0.35.0 setup-trivy v0.2.6.” Check the advisory for the current list.
- Pin every other third-party action to a full SHA taken from the action's own repository. Harbor's view: do this for all of them, not only Trivy.
- Limit the token. GitHub says: “It's good security practice to set the default permission for the GITHUB_TOKEN to read access only for repository contents.”
What this guide does not cover
- Whether your pipeline ran a bad version. Only your logs and the advisory can answer that.
- Malware analysis or full indicators of compromise. The advisory lists hashes. Use them from the source.
- How to set up a lockfile. Use GitHub's page.
- Any guarantee. Pinning and rotation are not a guarantee that a pipeline is safe.
Want your workflows checked and pinned?
Harbor Artificial offers a fixed-price package: CI/CD & GitHub Hardening. The live package page lists three tiers:
- Starter, $750: 1 org, up to 10 repos and 15 workflows. The deliverables are findings, a pinned-SHA action list and branch-rule settings, in 4 business days.
- Standard, $1,500: 1 org, up to 40 repos and 60 workflows. The Starter items plus an OIDC and secret scoping plan and a Dependabot or Renovate config, in 6 business days.
- Advanced, $2,800: up to 2 orgs, 100 repos and reusable workflows. The Standard items plus a rulesets rollout plan and runner hardening notes, in 10 business days.
The page's acceptance line says: “Every third-party action is listed with current ref and recommended pinned SHA.” Its exclusions include “Admin changes unless the client grants a scoped admin role in writing.” Harbor works only on systems and accounts it has written authorization and a signed scope for. The page says: “Not a penetration test, audit, or certification; no guarantee of breach prevention; written authorization required before any active testing.” See the package and tiers.
Sources
Fetched 2026-10-27 (PT). Status is the HTTP status of the final response.
- https://github.com/aquasecurity/trivy/security/advisories/GHSA-69fq-xp46-6x23 (HTTP 200) - GitHub Security Advisory GHSA-69fq-xp46-6x23 (live page): severity, date, incident facts, exposure window, affected/not affected, recommended actions
- https://docs.github.com/en/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions (HTTP 200) - GitHub Docs, Secure use reference (live page): lockfile first, SHA pinning fallback, tag risk, token permissions, secrets
- https://harborartificial.com/security/ci-cd-and-github-hardening/ (HTTP 200) - Live package page: tiers, prices, acceptance, exclusions, scope line
FAQ
Guide FAQ
Was my repository affected by the Trivy compromise?
Check the advisory's lists. It says you were affected if you used "Any tags prior except 0.35.0 (0.0.1 - 0.34.2)" of trivy-action, or "SHA pinning to a commit prior to 2025-04-09." Then read your run logs for March 19-20, 2026. Source: https://github.com/aquasecurity/trivy/security/advisories/GHSA-69fq-xp46-6x23
If I pin to a commit SHA, am I safe?
Not always. The advisory says a trivy-action commit pinned before 2025-04-09 "would get a safe trivy-action but it would get a malicious setup-trivy." Read what your pinned action pulls in. Source: https://github.com/aquasecurity/trivy/security/advisories/GHSA-69fq-xp46-6x23
Should I use a lockfile instead of SHA pins?
GitHub says a lockfile is "the strongest protection available" and "supersedes SHA pinning for repositories that adopt it." SHA pinning is for repositories that cannot adopt one. Source: https://docs.github.com/en/actions/reference/security/secure-use
Which versions does the advisory call safe?
Its table lists "trivy-action v0.35.0 setup-trivy v0.2.6" and Trivy binary v0.69.2 and v0.69.3. The list may change, so check the live page. Source: https://github.com/aquasecurity/trivy/security/advisories/GHSA-69fq-xp46-6x23
What should I do if a bad version may have run in my pipeline?
The advisory says "all secrets accessible to affected pipelines must be treated as exposed and rotated immediately." Advisory: https://github.com/aquasecurity/trivy/security/advisories/GHSA-69fq-xp46-6x23 GitHub adds that if an unredacted secret reaches a log, "you should delete the log and rotate the secret." GitHub docs: https://docs.github.com/en/actions/reference/security/secure-use
Will the CI/CD hardening package make my pipeline safe?
Harbor does not promise that. The page says "no guarantee of breach prevention." Its acceptance line is "Every third-party action is listed with current ref and recommended pinned SHA." Source: https://harborartificial.com/security/ci-cd-and-github-hardening/
Want to see if a package fits?
Share what you’re trying to ship, your timing, and any constraints you already know. We’ll reply from hello@harborartificial.com.