PF-2200 Add Trivy scan support for Docker images in ci-pr-checks-image - #463
Merged
bragesande94 merged 9 commits intoJul 20, 2026
Conversation
…-workflow-for-dockerfile-apps
bragesande94
marked this pull request as draft
July 16, 2026 05:23
…or-dockerfile-apps' of github.com:felleslosninger/github-workflows into PF-2200-legg-til-stotte-for-trivy-scan-pa-pr-workflow-for-dockerfile-apps
bragesande94
marked this pull request as ready for review
July 16, 2026 16:35
bragesande94
marked this pull request as draft
July 16, 2026 16:35
emilarnesen
reviewed
Jul 20, 2026
Co-authored-by: Emil Lehre Arnesen <emilarnes1@gmail.com>
bragesande94
marked this pull request as ready for review
July 20, 2026 09:24
emilarnesen
self-requested a review
July 20, 2026 09:43
emilarnesen
approved these changes
Jul 20, 2026
bragesande94
deleted the
PF-2200-legg-til-stotte-for-trivy-scan-pa-pr-workflow-for-dockerfile-apps
branch
July 20, 2026 09:50
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.
Summary
The workflow
ci-pr-checks-image.ymlsupported PR Trivy scanning for spring-boot and quarkus, but not docker images. Custom Docker image builds have not received any PR vulnerability scanning. This task is part of: PF-2200Changes
ci-docker-container-scan.yml(builds a temporary local image, runs Trivy, never pushes) — mirrors the spring-boot/quarkus scan workflowscall-docker-container-scanjob toci-pr-checks-image.yml(like spring-boot and quarkus is configured)Testing
Tested in
plattform-test-appagainst the existingdocker/plattform-postgres-client/Dockerfile using a temporary branch (PR: TEST:PF-2200). The scan of the docker image successfully ran and the PR-check workflow looks to be working as intended. During testing I also had to temporarily point the ci-docker-container-scan.yml reference inside ci-pr-checks-image.yml to this branch instead of main since the new workflow file only exists here until merged.You can see the docker-scan action which was triggered here.
I have not tested/verified that scanning a known/vulnerable docker image is stopped, but this should behave as the other scan-workflows.
All changes done during the test-phase have been reverted.
Note
General documentation regarding how-to (pipelinetesting) have also been updated here: https://github.com/felleslosninger/platform/pull/137