CI: add dependency check
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Simon Vieille 2022-12-04 22:25:04 +01:00
parent b7595a371d
commit 709ace5d4f
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -30,6 +30,12 @@ pipeline:
when:
event: [pull_request]
dependency_check:
image: registry.gitlab.com/gitlab-ci-utils/docker-dependency-check:latest
commands:
- /usr/share/dependency-check/bin/dependency-check.sh --scan "./" --format ALL --project "$CI_REPO" --failOnCVSS 0
- if [ $(grep -c "vulnerabilities" dependency-check-report.json) -gt 0 ]; then exit 2; fi
package:
image: gitnet.fr/deblan/devenv
volumes: