ci: 💚 use alternate trivy db repos
This commit is contained in:
parent
08947259ae
commit
dc978900b8
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user