ci: scan app and web images with Trivy - #55
vitormattos merged 4 commits into
Conversation
c91c07c to
628f603
Compare
|
The local validation is now complete on |
|
One note about the PR workflow here. While the PR is marked as draft, we understand that the implementation is still in progress. When it is ready for code review, please mark it as Ready for review. I reviewed this one early because it is your first contribution here and I wanted to give some direction before you continue. After addressing review comments and pushing the changes, please re-request the review so we know it is ready for another pass. |
|
The verification and publish jobs are split now, and both amd64 and arm64 must pass the Trivy gate before publishing either image. The local checks passed on 6347691; the app scan still finds the existing fixed gzip CVE, while the web image is clean. I marked the PR ready. GitHub would not let me re-request your review from my account, and the workflow still shows action_required, so the hosted image build and scans have not run yet. I kept the package update out of scope for now, but let me know if you want that handled here. |
|
Thanks. The two review points look addressed now. For the We need to fix that vulnerability before merging this PR, otherwise the new publish gate will immediately block the image workflow. I will first approve the workflow run so we can validate the new CI flow. |
vitormattos
left a comment
There was a problem hiding this comment.
The implementation looks good now and the CI is passing. The previous technical points are resolved.
There is only one review comment still pending: the README section. Please simplify that part as discussed, then this should be ready.
One small Git tip for future PRs: I noticed you merged main into your branch to update it. This works, but for a feature branch I usually recommend rebasing on main instead:
git fetch origin
git rebase origin/mainThis keeps the PR history cleaner and avoids an extra merge commit that only exists to update the branch.
After the README change, please re-request the review.
af5deee to
6c2cabd
Compare
Signed-off-by: ahmad <ahmadalgaidy@hotmail.com>
Signed-off-by: ahmad <ahmadalgaidy@hotmail.com>
Signed-off-by: ahmad <ahmadalgaidy@hotmail.com>
Signed-off-by: ahmad <ahmadalgaidy@hotmail.com>
6c2cabd to
03d0299
Compare
vitormattos
left a comment
There was a problem hiding this comment.
Everything from my review is addressed now.
Summary
appandweb) with Trivy using one shared policy: HIGH and CRITICAL vulnerabilities fail when a fix is available, and end-of-life base OS versions fail.linux/amd64images locally in CI, then run the same scan script and save SARIF reports; pushes upload available SARIF reports to code scanning.make scan-imagesand document the local equivalent.Validation
actionlint .github/workflows/docker-image.ymlpassed.bash -n scripts/scan-images.shpassed.make -n scan-imagespassed.git diff --checkpassed.v0.74.0scanned a remote Alpine image under both labels, produced valid SARIF for each, and returned failure for its HIGH vulnerability with an available fix, as configured.Local limitation
Docker Desktop's Linux engine is not available in this WSL environment, so I could not build this repository's app and web images locally. The PR workflow builds and scans those actual images. I left this as a draft until that CI run completes.