Skip to content

Commit 9759187

Browse files
committed
Using trivy to scan container image
1 parent 8fc2c77 commit 9759187

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/pull-request.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ jobs:
3737
3838
sudo ./release/http-downloader_linux_amd64/hd install ks
3939
ks version
40-
- name: Upload Artifact for darwin
41-
uses: actions/upload-artifact@v2
40+
- name: Run Trivy vulnerability scanner
41+
uses: aquasecurity/trivy-action@master
4242
with:
43-
name: hd-darwin-amd64
44-
path: release/hd-darwin-amd64.tar.gz
45-
- name: Upload Artifact for linux
46-
uses: actions/upload-artifact@v2
47-
with:
48-
name: hd-linux-amd64
49-
path: release/hd-linux-amd64.tar.gz
43+
image-ref: 'surenpi/hd:latest'
44+
format: 'table'
45+
exit-code: '1'
46+
ignore-unfixed: true
47+
vuln-type: 'os,library'
48+
severity: 'CRITICAL,HIGH'
49+
5050
GoLint:
5151
name: Lint
5252
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)