Skip to content

fix: fix CI pipeline — Docker push, Trivy scanner, k6, remove OWASP Maven#2166

Open
Wachhund wants to merge 1 commit into
TheMorpheus407:masterfrom
Wachhund:fix/ci-pipeline-docker-trivy-k6
Open

fix: fix CI pipeline — Docker push, Trivy scanner, k6, remove OWASP Maven#2166
Wachhund wants to merge 1 commit into
TheMorpheus407:masterfrom
Wachhund:fix/ci-pipeline-docker-trivy-k6

Conversation

@Wachhund

Copy link
Copy Markdown

Summary

  • docker.yml: Add GHCR login (docker/login-action@v3) and docker push steps so built images are actually published to the registry. Previously, images were tagged for ghcr.io but never pushed — every build produced zero persistent artifacts
  • docker.yml: Fix Trivy container vulnerability scanner — scan-type: 'image' requires image-ref (image name), not scan-ref: '.' (filesystem path). Split into separate API and Web image scans
  • load-tests.yml: Add pnpm/action-setup@v4 (pnpm was missing, causing cache: pnpm to fail) and install k6 via apt (k6 is a Go binary, not available via npx)
  • load-tests.yml: Add POSTGRES_PASSWORD env var to docker compose up step
  • ci.yml: Remove owasp-dependency-check job that runs Maven (mvn org.owasp:dependency-check-maven:6.8.1:check) against a project with no pom.xml — always fails. Node.js vulnerability scanning is already covered by pnpm audit in the dependency-audit job

Closes #2005

Test plan

  • Docker workflow builds and pushes images on push to master
  • Trivy scans actual container images (not filesystem)
  • Load test workflow installs pnpm and k6 successfully
  • CI pipeline passes without the broken OWASP Maven job

…, remove OWASP Maven

- docker.yml: add GHCR login and push steps so images are actually published
- docker.yml: fix Trivy scan-ref to use image-ref with actual built image names
- load-tests.yml: add pnpm/action-setup and k6 apt installation
- ci.yml: remove owasp-dependency-check job (Maven against Node.js project)
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.

[MEDIUM] OWASP dependency-check-maven 6.8.1 is significantly outdated

1 participant