add scan stage in ci script
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Wolfgang Hottgenroth 2025-01-07 14:27:00 +01:00
parent e949df8a83
commit 0225fc26a6
2 changed files with 7 additions and 0 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
.*~
ENV
ENV.test
tmp/

View File

@ -13,6 +13,12 @@ steps:
dockerfile: Dockerfile
when:
- event: [push, tag]
scan_image:
image: aquasec/trivy
commands:
- trivy image $FORGE_NAME/$CI_REPO:$CI_COMMIT_SHA --quiet --exit-code 1
when:
- event: [push, tag]
build:
image: plugins/kaniko
settings: