fix: install grype with checksum verification for container scan reports#180
Merged
Conversation
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
anchore/scan-actioninstalls grype to a temp dir that is not on$PATH--ignore-missingsince the file covers all platforms), then extracts to/usr/local/bingrype-container-scanuploadTest plan
grype: command not foundgrype-container-scanartifact is non-empty (contains grype-report.txt and grype-report.json)