Skip to content

fix: install grype with checksum verification for container scan reports#180

Merged
coopernetes merged 2 commits into
mainfrom
fix/grype-install-in-path
Apr 21, 2026
Merged

fix: install grype with checksum verification for container scan reports#180
coopernetes merged 2 commits into
mainfrom
fix/grype-install-in-path

Conversation

@coopernetes
Copy link
Copy Markdown
Member

Summary

  • The "Generate human-readable report" step was failing because anchore/scan-action installs grype to a temp dir that is not on $PATH
  • Adds an "Install grype" step that downloads v0.111.0, verifies the tarball against the release-provided checksums.txt (with --ignore-missing since the file covers all platforms), then extracts to /usr/local/bin
  • Fixes empty artifacts in the grype-container-scan upload

Test plan

  • Docker Build & Publish workflow runs on merge to main
  • Container Scan job completes without grype: command not found
  • grype-container-scan artifact is non-empty (contains grype-report.txt and grype-report.json)

The report generation step was calling `grype` as a bare command but
anchore/scan-action installs grype to a temp dir not on PATH. Fix by
downloading grype v0.111.0 from GitHub releases and verifying against
the release-provided checksums.txt before extracting to /usr/local/bin.

closes #180
…eduled scan

- Move GRYPE_VERSION to job-level env so anchore/scan-action (grype-version param)
  and the install step both reference the same value
- Apply identical fix to container-scan.yml (weekly scheduled scan)
@coopernetes coopernetes merged commit f5544c7 into main Apr 21, 2026
12 checks passed
@coopernetes coopernetes deleted the fix/grype-install-in-path branch April 21, 2026 12:25
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