-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch scanner on publish container workflow (#4460)
* Modify scanner in weekly publish workflow * Modify workflow params * Disable VEX Notice * Add backwards compatability
- Loading branch information
1 parent
c394e21
commit a73bfd0
Showing
1 changed file
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,8 +33,26 @@ jobs: | |
- name: Pull Docker Image | ||
run: docker pull ${{ matrix.image.name }} | ||
|
||
- name: Scan Image | ||
run: docker run aquasec/trivy:latest image --timeout 5m --scanners vuln --exit-code 1 --severity CRITICAL,HIGH ${{ matrix.image.name }} | ||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/[email protected] | ||
env: | ||
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db,ghcr.io/aquasecurity/trivy-db | ||
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db,ghcr.io/aquasecurity/trivy-java-db | ||
TRIVY_SKIP_DB_UPDATE: true | ||
TRIVY_SKIP_JAVA_DB_UPDATE: true | ||
TRIVY_DISABLE_VEX_NOTICE: true | ||
with: | ||
image-ref: '${{ matrix.image.name }}' | ||
scan-type: 'image' | ||
hide-progress: false | ||
exit-code: 1 | ||
severity: 'CRITICAL,HIGH' | ||
scanners: 'vuln' | ||
timeout: 15m0s | ||
ignore-unfixed: true | ||
|
||
# - name: Scan Image | ||
# run: docker run aquasec/trivy:latest image --db-repository public.ecr.aws/aquasecurity/trivy-db,ghcr.io/aquasecurity/trivy-db --java-db-repository public.ecr.aws/aquasecurity/trivy-java-db,ghcr.io/aquasecurity/trivy-java-db --timeout 5m --scanners vuln --exit-code 1 --severity CRITICAL,HIGH ${{ matrix.image.name }} | ||
|
||
- name: Tag Image | ||
run: | | ||
|