Skip to content

Install Trivy from its release, not through apt - #941

Merged
MBombeck merged 1 commit into
mainfrom
ci/trivy-install
Sep 9, 2026
Merged

Install Trivy from its release, not through apt#941
MBombeck merged 1 commit into
mainfrom
ci/trivy-install

Conversation

@MBombeck

@MBombeck MBombeck commented Sep 9, 2026

Copy link
Copy Markdown
Owner

The Container Security job installed Trivy through apt, and apt-get update failed twice in a row on the v1.38.12 merge commit because the runner's preinstalled Chrome repository answered with a corrupt index ("Hash Sum mismatch"). The step now fetches the pinned v0.74.0 release binary through Trivy's own installer, which verifies the tarball against the published checksums. No apt, so no unrelated repository can fail the gate. This PR's own Container Security run is the proof.

The scanner job installed Trivy through apt, which runs `apt-get update`
across every repository on the runner image. On the v1.38.12 merge
commit the runner's preinstalled Chrome repository answered with a
corrupt index ("Hash Sum mismatch") twice in a row, and the release gate
went red on a step that has nothing to do with the image under test.

The step now fetches the pinned release binary through Trivy's own
installer, which downloads the tarball for that exact version and checks
it against the published checksums. No apt, so no unrelated repository
can fail the job.
@MBombeck
MBombeck merged commit 3f67a78 into main Sep 9, 2026
27 of 29 checks passed
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