Skip to content

PF-2200 Add Trivy scan support for Docker images in ci-pr-checks-image - #463

Merged
bragesande94 merged 9 commits into
mainfrom
PF-2200-legg-til-stotte-for-trivy-scan-pa-pr-workflow-for-dockerfile-apps
Jul 20, 2026
Merged

PF-2200 Add Trivy scan support for Docker images in ci-pr-checks-image#463
bragesande94 merged 9 commits into
mainfrom
PF-2200-legg-til-stotte-for-trivy-scan-pa-pr-workflow-for-dockerfile-apps

Conversation

@bragesande94

@bragesande94 bragesande94 commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

The workflow ci-pr-checks-image.yml supported 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-2200

Changes

  • Added ci-docker-container-scan.yml (builds a temporary local image, runs Trivy, never pushes) — mirrors the spring-boot/quarkus scan workflows
  • Added call-docker-container-scan job to ci-pr-checks-image.yml (like spring-boot and quarkus is configured)
  • Updated README

Testing

Tested in plattform-test-app against the existing docker/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

@bragesande94
bragesande94 requested a review from a team as a code owner July 16, 2026 05:23
@bragesande94
bragesande94 marked this pull request as draft July 16, 2026 05:23
@bragesande94 bragesande94 changed the title PF-2200 Legg til støtte for Trivy scan på PR workflow for Dockerfile-apps PF-2200 Add Trivy scan support for Docker images in ci-pr-checks-image Jul 16, 2026
@bragesande94
bragesande94 marked this pull request as ready for review July 16, 2026 16:35
@bragesande94
bragesande94 marked this pull request as draft July 16, 2026 16:35
Comment thread .github/workflows/ci-docker-container-scan.yml
Co-authored-by: Emil Lehre Arnesen <emilarnes1@gmail.com>
@bragesande94
bragesande94 marked this pull request as ready for review July 20, 2026 09:24
@emilarnesen
emilarnesen self-requested a review July 20, 2026 09:43
@bragesande94
bragesande94 merged commit 52e370e into main Jul 20, 2026
3 checks passed
@bragesande94
bragesande94 deleted the PF-2200-legg-til-stotte-for-trivy-scan-pa-pr-workflow-for-dockerfile-apps branch July 20, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants