Skip to content

ci: pin trivy to an existing release (0.59.1 does not exist)#28

Open
mlwelles wants to merge 1 commit into
matthewmcneely:mainfrom
mlwelles:chore/fix-trivy-pin
Open

ci: pin trivy to an existing release (0.59.1 does not exist)#28
mlwelles wants to merge 1 commit into
matthewmcneely:mainfrom
mlwelles:chore/fix-trivy-pin

Conversation

@mlwelles

@mlwelles mlwelles commented Jun 17, 2026

Copy link
Copy Markdown

What this fixes

The Trunk config pins trivy@0.59.1, but that release does not exist on
github.com/aquasecurity/trivy. Trunk downloads tools from a version-templated
URL, so it requests:

https://github.com/aquasecurity/trivy/releases/download/v0.59.1/trivy_0.59.1_Linux-64bit.tar.gz

which returns HTTP 404. The Trunk Code Quality check then fails with
✖ No issues, 1 failure — zero lint findings, one tool-install failure —
whenever a PR's diff is something trivy scans (workflow files, broad changes).
It has failed identically for weeks across multiple PRs.

The fix

Bump the pin to trivy@0.69.3, a real release that ships the expected
trivy_0.69.3_Linux-64bit.tar.gz asset. The Trunk trivy plugin (v1.6.7) uses a
version-templated download URL with no per-version enumeration, so this one-line
change is sufficient — no plugin bump required.

No source or lint-rule changes; this only repairs the Trunk toolchain so the
Code Quality check can run.


Summary by cubic

Pin trivy from 0.59.1 to 0.69.3 to stop CI failures caused by a nonexistent release. This restores the Trunk Code Quality check by allowing trivy to download and run.

Written for commit 7e97f3a. Summary will update on new commits.

Review in cubic

The Trunk config pinned trivy@0.59.1, but that release does not exist on
github.com/aquasecurity/trivy — Trunk's templated download
(.../v0.59.1/trivy_0.59.1_Linux-64bit.tar.gz) returns HTTP 404, failing the
Trunk Code Quality check on any PR whose diff trivy scans (e.g. workflow or
broad changes) while reporting no actual lint issues.

Bump to trivy@0.69.3, a real release with the expected Linux-64bit asset. The
plugin (v1.6.7) downloads trivy via a version-templated URL, so no other
change is needed.
@mlwelles mlwelles requested a review from matthewmcneely as a code owner June 17, 2026 23:43

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No issues found across 1 file

Re-trigger cubic

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.

1 participant