Repository navigation
ci: nightly CI on dev and GHCR latest security scan - #475
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds nightly automation to catch regressions and vulnerabilities without requiring PR activity, including a scheduled CI run against dev and a nightly security scan of the published :latest GHCR image with Trivy/SBOM/SARIF and an alerting mechanism.
Changes:
- Schedule
ci.ymlnightly at 04:00 UTC and ensure scheduled runs explicitly check outdev, withvcs-refderived from the checked-out commit. - Rework
security-scan.ymlto run nightly at 05:00 UTC by pullingghcr.io/vig-os/devcontainer:latest(no rebuild) and gating on fixable HIGH/CRITICAL findings, plus SBOM/SARIF upload and issue creation on gate failure. - Document the new nightly CI and security gate behavior in both changelogs.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.github/workflows/ci.yml |
Adds a nightly schedule and uses scheduled checkout targeting dev; propagates resolved commit to image metadata. |
.github/workflows/security-scan.yml |
Switches to nightly scan of GHCR :latest, adds gating, SBOM/SARIF artifacts, and deduplicated issue creation on failures. |
CHANGELOG.md |
Documents nightly CI and the updated scheduled security scan behavior. |
assets/workspace/.devcontainer/CHANGELOG.md |
Mirrors changelog updates for the workspace template. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Hard-fail scan-latest when GHCR image pull fails so missed scans are surfaced to watchers instead of silently passing. - Fix jq filter `.[0].number` returning literal "null" on empty results, which skipped issue creation on first gate failure; use `// empty`. Refs: #461
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.
Description
Adds a nightly CI schedule on
devso the full pipeline (build, tests, Python security, Trivy) runs without waiting for a PR. Reworks the scheduled security workflow to run nightly, pullghcr.io/vig-os/devcontainer:latest(no rebuild), run Trivy/SBOM/SARIF with categorycontainer-image-latest, and fail the workflow when fixable HIGH/CRITICAL findings remain after.trivyignore, with a deduplicated GitHub issue on failure. PR andworkflow_dispatchbehavior for CI is unchanged aside from scheduled checkout ref handling.Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
.github/workflows/ci.ymlschedulecron at 04:00 UTC; onschedule, checkoutref: devacross jobs.vcs_reffrom the checked-out commit and pass it tobuild-imageasvcs-refso the image metadata matches the scheduled tree..github/workflows/security-scan.ymldevrebuild + scan with nightlyscan-latest: pull GHCR:latest, Trivy table (awareness), gated scan on fixable HIGH/CRITICAL, SBOM + SARIF upload, step summary, optionalgh issue createwhen the gate fails, distinct SARIF categorycontainer-image-latest.CHANGELOG.mdandassets/workspace/.devcontainer/CHANGELOG.mdChangelog Entry
Testing
just test)Manual Testing Details
just test-batswas run successfully before the workflow commits (shell/just coverage). Fulljust test(image + integration) was not run for this PR.Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
N/A
Refs: #461