Repository navigation
Scan the image with Trivy and the live site with ZAP; fix what ZAP found - #36
Merged
Merged
Conversation
Trivy reports HIGH and CRITICAL findings in the image and fails the build only on a fixable critical one in a library the app brings; the image from main carries an SBOM and a provenance attestation. A weekly OWASP ZAP baseline reads the live site. Its first run found a DOMPurify with known vulnerabilities in Swagger UI (now 5.33.2, DOMPurify 3.4.16) and no Permissions-Policy header (Caddy sets it now).
…it writable by all SonarQube Cloud (githubactions:S2612) flagged the chmod a+rwX.
|
MCCProgrammer
added a commit
that referenced
this pull request
Oct 28, 2026
Both sides added a property and a managed dependency in the same places of pom.xml (the pinned Swagger UI from #36, the Spring Modulith BOM here); kept both.
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.



What
imagejob. The image is built into the runner first and scanned before anything is published.mainthey are uploaded to code scanning as SARIF.mainattaches BuildKit's SBOM and a provenance attestation (provenance: mode=max).zap.yml): runs every Thursday, or by hand, against the live site. It is passive and only reads pages..zap/rules.tsvdecides which findings fail the run, which are warnings and which are ignored.org.webjars:swagger-uiis pinned to 5.33.2, which bundles DOMPurify 3.4.16, until springdoc brings it.springdoc.swagger-ui.versiontakes the same version from the pom, otherwise/swagger-ui/index.htmlreturns 404.Permissions-Policyheader was set. Caddy now sends one for camera, microphone, geolocation, payment, USB and browsing topics.Checks
caddy validateaccepts the Caddyfile../mvnw verifypasses.