File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -44,14 +44,14 @@ jobs:
44
44
- name : Run Trivy Vulnerability Scanner
45
45
id : trivy_scan
46
46
if : env.latest_digest != ''
47
- uses : aquasecurity/trivy-action@master
48
- with :
49
- image-ref : ghcr.io/${{ github.repository_owner }}/${{ env.dst_img }}:latest
50
- format : ' table '
51
- exit-code : ' 1 '
52
- ignore-unfixed : true
53
- vuln-type : ' os,library '
54
- severity : ' CRITICAL,HIGH '
47
+ env :
48
+ TRIVY_DEFAULT : " --format table --ignore-unfixed --exit-code 1 "
49
+ TRIVY_SCAN : " --severity CRITICAL,HIGH --vuln-type os,library "
50
+ run : >
51
+ docker run --rm ghcr.io/aquasecurity/trivy:latest image $TRIVY_DEFAULT $TRIVY_SCAN
52
+ --username ${{ github.actor }}
53
+ --password ${{ secrets.GITHUB_TOKEN }}
54
+ ghcr.io/${{ github.repository_owner }}/${{ env.dst_img }}:latest
55
55
continue-on-error : true
56
56
57
57
- name : Update Existing Image
You can’t perform that action at this time.
0 commit comments