Fix Grype false positives, patch Jammy, sort results, post digest to Slack - #173
Merged
Merged
Conversation
…ion, swagger-ui-dist template) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ches ubuntu:22.04 ships libc-bin 2.35-0ubuntu3.14; 3.15 (fixing 5 CVEs) is in jammy-updates. The minimal image already upgrades; the full-stack did not. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Each scan job uploads its grype.json (1-day retention); a final job builds one de-duplicated digest (package, then severity) and posts it to the SLACK_WEBHOOK_URL webhook, skipping cleanly when the secret is absent (fork PRs). 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
Cleans up the Grype scan results for the Docker images and makes them easier to track.
.grype.yaml): Grype's binary classifier reads PHP's own version (e.g. 8.5.11) out ofcurl.soand reports it as curl, so every curl CVE fixed after that number was flagged (43 findings onsimplerisk-minimal). The real Debian curl is 8.14.1 and is scanned separately. Replaced the per-CVE ignores with one rule scoped to curl binaries under/usr/local/lib/php/extensions/**. Also ignoredswagger-ui-dist, which is a release-script template (swagger-ui-dist-package/package.json, version literally$$VERSION) shipped inside theswagger-api/swagger-uiComposer package; the UI actually served is 5.x.apt-get installbut neverapt-get upgrade, soubuntu:22.04keptlibc-bin2.35-0ubuntu3.14 (5 CVEs fixed in 3.15). Addedapt-get upgradeto the generator and the committed Dockerfile, matching the minimal image.--fail-on criticalstill gates the job (verified exit code 2 without the ignore rules).grype.json(1-day retention); a final job posts one de-duplicated digest per run toSLACK_WEBHOOK_URL. It skips with a notice when the secret is absent (fork PRs).Release Notes
N/A (CI and image-hardening only).
Testing
simplerisk-minimal:testinglocally with the new.grype.yaml: no vulnerabilities. Rebuilt Jammy with the upgrade step: no vulnerabilities,libc-bin3.15.test_generate_dockerfile.shpasses; ShellCheck and actionlint clean on the new files.[TEST]messages, rendered correctly).Notes for reviewers
The Slack post happens on every PR run with findings, from a final job that runs even when a scan job fails.