Repository navigation
ci: scan the most recently pushed image with Trivy - #118
Open
rsubrama83 wants to merge 1 commit into
Open
rsubrama83 wants to merge 1 commit into
rsubrama83 wants to merge 1 commit into
Conversation
The scan targeted the :latest tag, which no workflow pushes anymore (images are tagged with a content hash), so it scanned a stale image. - Resolve the newest tag of vars.CR_NAMESPACE_REPOSITORY via the GHCR packages API, or use the image-tag dispatch input - Use aquasecurity/trivy-action with DB mirrors to avoid ghcr.io rate limits on the vulnerability database - Add a debug dispatch input and a HIGH/CRITICAL table summary in the log - Upload SARIF with codeql-action v4 Fixes #80 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Fixes #80.
Problems
ghcr.io/lm-development/aks-sample/aks-sample:latest, but no workflow pushes:latestanymore.routine-buildimage.ymltags images with a content hash. Recent green runs were scanning an old image, not what's deployed.trivy-dbdownloads that hit many repos at the time. That's likely, but unconfirmed because the old logs are gone.apt-key, there was no verbose option (requested in Trivy scan is currently broken #80), and the "check result" step never failed anything.Changes
vars.CR_NAMESPACE_REPOSITORYthrough the GHCR packages API (packages: read). Animage-tagdispatch input can override it.aquasecurity/trivy-action@v0.36.0, withTRIVY_DB_REPOSITORYmirrors (mirror.gcr.io,public.ecr.aws,ghcr.io) as a fallback for rate limits.debugdispatch input (TRIVY_DEBUG) for verbose logs.codeql-action/upload-sarif@v4, plus a HIGH/CRITICAL table in the job log.permissions.Verified
Dispatched on this branch: https://github.com/LM-Development/OmniBot/actions/runs/37466044512. It succeeded and scanned
aks-sample:775002f1.HIGH findings (no CRITICAL):
These are not addressed in this PR.
Note
Scan - Trivy,Continuous IntegrationandScan - CodeQLhad been auto-disabled by GitHub for inactivity (no commits since 2026-05-08). They have been re-enabled.🤖 Generated with Claude Code