ci: move Trivy scan to periodic workflow - #1651
Open
ZohebShaikh wants to merge 1 commit into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1651 +/- ##
=======================================
Coverage 96.34% 96.34%
=======================================
Files 46 46
Lines 3666 3666
=======================================
Hits 3532 3532
Misses 134 134 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
Author
Scanning the container image on every push/PR added time to a path that runs on every commit. Trivy now runs as a job in periodic.yml, on the same weekly schedule and workflow_dispatch as the rest of the periodic checks, building the image from the checked-out ref and scanning it independently of the PR build. Pin the trivy-action's version input to v0.74.0 so the scanned trivy version doesn't shift under us on a future trivy-action bump. Verified by building the container from main locally and running Trivy against it, which correctly surfaced existing HIGH vulnerabilities. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AV8asKUKbiS7A5Fz7YWqZy
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
_container.yml) into its own workflow (trivy.yml)periodic.yml's cadence) and viaworkflow_dispatch, instead of on every push/PRTest plan
mainlocally and confirmed the CLI worksmsgpackand a bundledpebblebinary, unrelated to this change)trivy.ymlworkflow runs successfully viaworkflow_dispatchon GitHub🤖 Generated with Claude Code
Scanning the container image on every push/PR added time to a path that runs on every commit. Trivy now runs on its own weekly schedule (matching periodic.yml's cadence) and via workflow_dispatch, building the image from the checked-out ref and scanning it independently of the PR build.
Verified by building the container from main locally and running Trivy against it, which correctly surfaced existing HIGH vulnerabilities.
Claude-Session: https://claude.ai/code/session_01AV8asKUKbiS7A5Fz7YWqZy