Skip to content

Harden Trivy verification flow#38

Merged
mtarsel merged 1 commit into
IBM:mainfrom
adilhusain-s:pr/01-trivy-stabilization
May 20, 2026
Merged

Harden Trivy verification flow#38
mtarsel merged 1 commit into
IBM:mainfrom
adilhusain-s:pr/01-trivy-stabilization

Conversation

@adilhusain-s
Copy link
Copy Markdown
Collaborator

@adilhusain-s adilhusain-s commented May 15, 2026

Context

The release build was failing in the Trivy verification path before the Python build could proceed. The Trivy version pin, checksum validation, and install logic were split across multiple places, which made failures harder to reason about and update.

What changed

  • Add .trivyversion as the repository source of truth for the pinned Trivy release.
  • Add scripts/verify-trivy.sh to verify the requested release tag and the pinned checksums.
  • Add scripts/update-trivy-checksums.sh to refresh the checksum file from the upstream Trivy release.
  • Move the container-side install logic into python-versions/install-trivy.sh.
  • Centralize Trivy asset naming in python-versions/trivy-assets.sh.
  • Update Makefile, python-versions/Dockerfile, and the reusable build workflow to use the new verification/install flow.

Why this shape

This keeps the Trivy pin, verification, and install path aligned so the same pinned metadata is used both on the host and inside the Docker build.

Validation

  • Verified shell syntax for the added and updated scripts.
  • Ran the local checksum verification path against the pinned Trivy version.
  • Linted the changed reusable workflow with actionlint.

The release build was failing early in Trivy verification because the
release tag, checksum validation, and install path were spread across
multiple ad hoc checks.

Pin the Trivy release through the repo version file, verify the pinned
checksums through shared helper scripts, and make the container install
path consume the same validated asset metadata as the host-side checks.

Signed-off-by: Adilhusain Shaikh <Adilhusain.Shaikh@ibm.com>
@mtarsel mtarsel merged commit c5c6d07 into IBM:main May 20, 2026
4 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.

2 participants