Provide alternative Trivy repo
Added enviromental variables with multiple trivy repos.
This commit is contained in:
committed by
Chris Bono
parent
f1b11d8885
commit
0682b79208
4
.github/workflows/common.yml
vendored
4
.github/workflows/common.yml
vendored
@@ -21,7 +21,7 @@ on:
|
||||
enableSecurityScan:
|
||||
type: boolean
|
||||
required: false
|
||||
default: false
|
||||
default: true
|
||||
description: 'Enable security scan with Trivy'
|
||||
secrets:
|
||||
DOCKERHUB_USERNAME:
|
||||
@@ -40,6 +40,8 @@ env:
|
||||
VERBOSE: ${{ (github.debug || inputs.verbose) && 'true' || '' }}
|
||||
BRANCH: ${{ inputs.branch }}
|
||||
MAVEN_THREADS: ${{ inputs.mavenThreads }}
|
||||
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db,aquasec/trivy-db,ghcr.io/aquasecurity/trivy-db
|
||||
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db,aquasec/trivy-java-db,ghcr.io/aquasecurity/trivy-java-db
|
||||
|
||||
jobs:
|
||||
parameters:
|
||||
|
||||
Reference in New Issue
Block a user