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 authored and onobc committed Nov 18, 2024
1 parent f1b11d8 commit 0682b79
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 @@ -21,7 +21,7 @@ on:
enableSecurityScan:
type: boolean
required: false
default: false
default: true
description: 'Enable security scan with Trivy'
secrets:
DOCKERHUB_USERNAME:
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:
parameters:
Expand Down

0 comments on commit 0682b79

Please sign in to comment.