Skip to content

Commit

Permalink
Provide alternative Trivy repo
Browse files Browse the repository at this point in the history
Added enviromental variables with multiple trivy repos.
  • Loading branch information
Corneil du Plessis authored and onobc committed Nov 18, 2024
1 parent 4e6d511 commit ee86eb2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
description: 'Maven Thread Option. Examples 0.5C, 2'
enableSecurityScan:
type: boolean
required: false
required: true
default: false
description: 'Enable security scan with Trivy'
secrets:
Expand All @@ -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:
scan:
Expand Down

0 comments on commit ee86eb2

Please sign in to comment.