File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 5
5
inputs :
6
6
enableSecurityScan :
7
7
type : boolean
8
- default : false
8
+ default : true
9
9
description : ' Enable security scan with Trivy'
10
10
push :
11
11
branches :
16
16
env :
17
17
ARTIFACTORY_USERNAME : ${{ secrets.ARTIFACTORY_USERNAME }}
18
18
ARTIFACTORY_PASSWORD : ${{ secrets.ARTIFACTORY_PASSWORD }}
19
+ TRIVY_DB_REPOSITORY : public.ecr.aws/aquasecurity/trivy-db,aquasec/trivy-db,ghcr.io/aquasecurity/trivy-db
20
+ TRIVY_JAVA_DB_REPOSITORY : public.ecr.aws/aquasecurity/trivy-java-db,aquasec/trivy-java-db,ghcr.io/aquasecurity/trivy-java-db
19
21
20
22
jobs :
21
23
build :
@@ -177,7 +179,7 @@ jobs:
177
179
secrets : inherit
178
180
scan :
179
181
runs-on : ubuntu-latest
180
- if : ${{ inputs.enableSecurityScan != null && inputs.enableSecurityScan }}
182
+ if : ${{ inputs.enableSecurityScan == null || inputs.enableSecurityScan }}
181
183
steps :
182
184
- uses : actions/checkout@v4
183
185
- name : Run Trivy vulnerability scanner in repo mode
You can’t perform that action at this time.
0 commit comments