Skip to content

CI: weekly scan of the published image - #29

Merged
Schnuecks merged 2 commits into
mainfrom
ci/image-scan
Oct 28, 2026
Merged

Schnuecks merged 2 commits into
mainfrom
ci/image-scan

Conversation

@Schnuecks

Copy link
Copy Markdown
Owner

CI only scans an image while it is built, so a vulnerability found later in a released image went unnoticed until the next pull request.

New workflow image-scan.yml scans ghcr.io/schnuecks/rdapi:latest with Trivy every Tuesday (after Dependabot's Monday run), on demand, and once as a test in a pull request that changes the file.

Critical and high findings with a fix are uploaded to Security -> Code scanning (category image-scan) and close there once a release fixes them. A critical finding also fails the run, which sends a notification.

CI only scans an image while it is built. A weekly Trivy scan of the latest release catches vulnerabilities found later, before the next pull request.
@Schnuecks
Schnuecks merged commit cd1c55e into main Oct 28, 2026
11 checks passed
@Schnuecks
Schnuecks deleted the ci/image-scan branch October 28, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant