File tree Expand file tree Collapse file tree 3 files changed +33
-23
lines changed Expand file tree Collapse file tree 3 files changed +33
-23
lines changed Original file line number Diff line number Diff line change
1
+ name : Trivy vulnerability scanner
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ pull_request :
7
+ jobs :
8
+ build :
9
+ name : Build
10
+ runs-on : ubuntu-18.04
11
+ steps :
12
+ - name : Checkout code
13
+ uses : actions/checkout@v2
14
+
15
+ - name : Build an image from Dockerfile
16
+ run : |
17
+ export PUBLISH=true
18
+ export REGISTRY=test
19
+ export IMAGE_VERSION=latest
20
+ export DOCKER_CLI_EXPERIMENTAL=enabled
21
+ make container
22
+
23
+ - name : Run Trivy vulnerability scanner
24
+ uses : aquasecurity/trivy-action@master
25
+ with :
26
+ image-ref : ' test/blob-csi:latest'
27
+ format : ' table'
28
+ exit-code : ' 1'
29
+ ignore-unfixed : true
30
+ vuln-type : ' os,library'
31
+ severity : ' CRITICAL,HIGH'
32
+
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ blob-darwin:
108
108
109
109
.PHONY : container
110
110
container : blob
111
- docker build -t $(IMAGE_TAG ) --output=type=docker -f ./pkg/blobplugin/dev. Dockerfile .
111
+ docker build -t $(IMAGE_TAG ) --output=type=docker -f ./pkg/blobplugin/Dockerfile .
112
112
113
113
.PHONY : container-linux
114
114
container-linux :
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments