Skip to content

Commit 6d93d84

Browse files
authored
Use trivy to scan the security issue (#193)
1 parent 4881378 commit 6d93d84

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/pull-request.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,17 @@ 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/[email protected]
42+
if: github.event_name == 'pull_request'
4243
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
44+
scan-type: 'fs'
45+
format: 'table'
46+
exit-code: '1'
47+
ignore-unfixed: true
48+
vuln-type: 'os,library'
49+
severity: 'CRITICAL,HIGH'
50+
5051
GoLint:
5152
name: Lint
5253
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)