feat: run trivy daily at 6AM UTC and create Copilot issue for CVEs - #389
Merged
Conversation
- Add schedule cron trigger (0 6 * * *) - Output trivy results as JSON for programmatic parsing - On scheduled runs with CVEs, create a GitHub Issue assigned to copilot - On push/tag runs, still fail the build on vulnerabilities - Deduplicate issues by checking for existing open issue with same title - Add issues:write permission Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #389 +/- ##
==========================================
- Coverage 67.55% 67.06% -0.50%
==========================================
Files 33 33
Lines 4889 3783 -1106
==========================================
- Hits 3303 2537 -766
+ Misses 1410 1072 -338
+ Partials 176 174 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
Author
|
Thanks -- coverage looks good. The slight decrease is expected since this PR only adds workflow YAML (no coverable Go code) while the base had some lines removed elsewhere. |
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
Updates the Trivy vulnerability scanner workflow to run on a daily schedule and automatically create GitHub Issues assigned to the Copilot coding agent when CVEs are found.
Changes
0 6 * * *(6:00 AM UTC) to catch overnight CVE disclosures.copilotto automatically open a fix PR.Prerequisites
securityandtrivylabels must exist in the repository.Why
Dependabot doesn't run frequently enough to address CVEs in container images in a timely manner. This gives us a daily scan with automated fix PRs via Copilot.