[DO NOT MERGE] Demo: oci-security-scan for multi-image repos - #577
[DO NOT MERGE] Demo: oci-security-scan for multi-image repos#577wallrj wants to merge 3 commits into
Conversation
Point the go and oci-build modules at the wallrj/makefile-modules oci-security-scan branch (cert-manager/makefile-modules#688), which adds oci-scan-<build_name> targets for every entry in build_names (manager AND approver here) and an oci_scan_extra_images variable, used to also scan the livenessprobe and csi-node-driver-registrar sidecar images. The govulncheck workflow becomes a combined nightly security-scan (govulncheck + trivy image scan) over the default branch, the two newest release branches and the latest released tag. DO NOT MERGE until makefile-modules#688 is merged and klone.yaml is repointed at upstream main. Signed-off-by: Richard Wall <richard@the-moon.net> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Dispatched run demonstrating the multi-image scan: https://github.com/cert-manager/csi-driver-spiffe/actions/runs/31047264571
with claude fable 5 |
Pull in the updated oci-security-scan module branch: scan reports are appended to the GitHub Actions job summary (guarded on GITHUB_STEP_SUMMARY so GitLab and local runs are unchanged), because the trivy table is hard to read in the raw job log. Signed-off-by: Richard Wall <richard@the-moon.net> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
Updated to makefile-modules commit 049ae80: trivy reports are now also written to the GitHub Actions job summary (one See the summary page of https://github.com/cert-manager/csi-driver-spiffe/actions/runs/31048471147 — sections for the manager image (clean), approver image (clean) and Note: trivy's with claude fable 5 |
Pull in the updated oci-security-scan module branch so that every image report appears in the log and job summary, instead of stopping at the first vulnerable image. Signed-off-by: Richard Wall <richard@the-moon.net> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Fixed in makefile-modules commit 9f38f78: the extra-images loop no longer stops at the first vulnerable image, and the workflow runs https://github.com/cert-manager/csi-driver-spiffe/actions/runs/31049028008 now shows all four reports in the job summary: manager (clean), approver (clean), with claude fable 5 |
Demonstrates cert-manager/makefile-modules#688 in a multi-image repo (
build_names := manager approver).klone.yamlpoints thegoandoci-buildmodules at theoci-security-scanbranch of wallrj/makefile-modules. This brings:oci-scan-managerandoci-scan-approvertargets — one per entry inbuild_names, generated automatically; the aggregateoci-security-scantarget scans both built images.oci_scan_extra_images, set inmake/00_mod.mkfrom the existing pinned sidecar variables, solivenessprobe:v2.19.0andcsi-node-driver-registrar:v2.17.0are scanned too and Renovate bumps flow through automatically.release-X.Ybranches, and the latest released tag. Keeping thegovulncheck.yamlfilename means the already-registered workflow can be dispatched pre-merge with--ref.Trivy policy:
--scanners vuln --severity MEDIUM,HIGH,CRITICAL --ignore-unfixed --exit-code 1, human-readable table output.See cert-manager/csi-driver#716 for the single-image demo.
DO NOT MERGE until makefile-modules#688 is merged and
klone.yamlis repointed at upstreammain.🤖 Generated with Claude Code