Scan published testing images, weekly :testing scan, per-image scan summary - #174
Merged
Merged
Conversation
…cl. all-clear) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…of :testing Factor the Grype scan and the report (summary + Slack digest) into composite actions shared by PR validation, publish-testing, and a new weekly workflow. publish-testing scans the pushed images before the SSM promote and blocks it on a critical finding. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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
Follow-up to #173. The PR validation scans an image built from the PR; the image that actually ships is rebuilt later from the testing bundle and promoted straight to
tier=testingcustomers. This adds scans where they were missing and makes every run show that its scans finished.✅ No findings,⚠️ N findings (by severity), or❌ scan did not complete. A scan that never produced a report is never shown as clean.publish-testing.yml): the minimal (php83/84/85) and full-stack (jammy/noble) images are scanned as published. The minimal scans run before the SSM promote step, so a critical finding fails the job and the promote does not happen (the tags are already pushed; the customer rollout is what is held back). Each scan iscontinue-on-errorso every report is produced, then a gate step fails the job.scheduled-grype-scan.yml): Mondays 13:00 UTC and on manual dispatch, scanssimplerisk/simplerisk-minimal:testingandsimplerisk/simplerisk:testing, so a CVE disclosed after publish is still reported..github/actions/grype-scan,.github/actions/grype-report) used by PR validation, publish and the weekly scan, so there is one copy of the logic. Reports go to the same Slack digest (findings only) and artifacts keep 1-day retention.Release Notes
N/A (CI only).
Testing
simplerisk-minimal:testingimage: clean case exits 0 and writes the report; the no-ignore case prints the sorted table and keeps the report. Summary and digest built from those reports render correctly.create_new_tag.yml); ShellCheck clean.testing), and the weekly schedule (runs first on a Monday, or via manual dispatch).Notes for reviewers
The promote block only stops the SSM write; images and tags are already pushed by then. The scans are report-only for the full-stack image, which has no SSM tier.