ci: 💚 use alternate trivy db repos
Some checks failed
ci/woodpecker/push/scans Pipeline was successful
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
Radek Goláň jr. 2024-10-31 09:26:28 +01:00
parent 08947259ae
commit dc978900b8
Signed by: shield
GPG Key ID: D86423BFC31F3591
2 changed files with 11 additions and 0 deletions

View File

@ -63,6 +63,9 @@ steps:
from_secret: registry_username
TRIVY_PASSWORD:
from_secret: registry_password
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db
TRIVY_CHECKS_BUNDLE_REPOSITORY: public.ecr.aws/aquasecurity/trivy-checks
commands:
- trivy image dev.shielddagger.com/opensource/discord-notifier:latest --exit-code 1 --username $TRIVY_USER --severity HIGH,CRITICAL
when:

View File

@ -5,6 +5,10 @@ steps:
- name: scan-repo
depends_on: []
image: aquasec/trivy
environment:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db
TRIVY_CHECKS_BUNDLE_REPOSITORY: public.ecr.aws/aquasecurity/trivy-checks
commands:
- trivy repo . --exit-code 1
when:
@ -12,6 +16,10 @@ steps:
- name: scan-conf
depends_on: []
image: aquasec/trivy
environment:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db
TRIVY_CHECKS_BUNDLE_REPOSITORY: public.ecr.aws/aquasecurity/trivy-checks
commands:
- trivy config . --exit-code 1
when: