Repository navigation
Closed
Description
Chore Type
CI / Build change
Description
Currently, CI only runs on PRs and manual dispatch, and the scheduled security scan runs weekly against dev only. This leaves two gaps:
- Upstream breakage goes undetected between PRs — new apt package versions, base image updates, or Python dependency changes can silently break the build.
- Newly published CVEs against the production image are only caught weekly, and the released image on
mainis never scanned on a schedule.
Proposed changes
-
Nightly CI on
dev: Add ascheduletrigger toci.yml. On schedule events, check outdevexplicitly. This runs the full suite nightly: build, image tests, integration tests, project checks, Python security (Bandit + Safety), and Trivy scan. Thedependency-reviewjob already auto-skips on non-PR events. -
Upgrade
security-scan.ymlfrom weekly to nightly: Change the cron from Monday 06:00 to nightly. Add a new job that pulls the latest published image from GHCR (ghcr.io/vig-os/devcontainer:latest) and runs Trivy + SBOM against it — coveringmainwithout rebuilding.
Acceptance Criteria
-
ci.ymlruns nightly againstdev(build + all test suites + Python security + Trivy) -
security-scan.ymlruns nightly instead of weekly -
security-scan.ymlscans bothdev(freshly built) andmain(latest from GHCR, no rebuild) - Existing PR-triggered and manual-dispatch behavior is unchanged
- SARIF uploads use distinct categories to avoid overwriting each other
Implementation Notes
ci.yml: addschedulecron trigger; in the checkout step, useref: devwhengithub.event_name == 'schedule'security-scan.yml: add ascan-latestjob that doesdocker pull ghcr.io/vig-os/devcontainer:latest, saves to tar, then runs the same Trivy steps with a separate SARIF category (container-image-latest)- Suggested cron times: CI at ~04:00 UTC, security-scan at ~05:00 UTC (stagger to reduce runner contention with existing CodeQL at 02:15)
Related Issues
None
Priority
Medium
Changelog Category
No changelog needed
Activity
ci: add nightly schedule to CI pipeline
ci: rewrite security scan to gate on GHCR latest image
docs: update changelog for nightly CI and security scan
fix(ci): fail on pull failure and fix null issue dedup in security scan
ci: nightly CI on dev and GHCR latest security scan (#475)
chore: release 0.3.2 (#477)
chore: release 0.3.2 (#119)
chore(ci): remove scheduled full CI from ci.yml (#493)
chore: release 0.3.2 (#122)
chore: release 0.3.2 (#125)
chore: release 0.3.2 (#128)
chore: release 0.3.2 (#486)