File tree Expand file tree Collapse file tree 4 files changed +46
-3
lines changed
Expand file tree Collapse file tree 4 files changed +46
-3
lines changed Original file line number Diff line number Diff line change 4848 run : |
4949 make buildx.image
5050 make buildx.push
51-
51+
52+ trivy :
53+ runs-on : ubuntu-18.04
54+ steps :
55+ - name : Checkout code
56+ uses : actions/checkout@v2
57+
58+ - name : Run Trivy vulnerability scanner
59+ uses : aquasecurity/trivy-action@master
60+ with :
61+ image-ref : ' openebs/linux-utils:ci'
62+ format : ' table'
63+ exit-code : ' 1'
64+ ignore-unfixed : true
65+ severity : ' CRITICAL,HIGH'
Original file line number Diff line number Diff line change 3636
3737 - name : Build Image
3838 env :
39- IMG_RESULT : cache
39+ IMG_RESULT : load
4040 run : make buildx.image
41+
42+ - name : Run Trivy vulnerability scanner
43+ uses : aquasecurity/trivy-action@master
44+ with :
45+ image-ref : ' openebs/linux-utils:ci'
46+ format : ' table'
47+ exit-code : ' 1'
48+ ignore-unfixed : true
49+ severity : ' CRITICAL,HIGH'
Original file line number Diff line number Diff line change 4646 run : |
4747 make buildx.image
4848 make buildx.push
49+
50+ trivy :
51+ runs-on : ubuntu-18.04
52+ steps :
53+ - name : Checkout code
54+ uses : actions/checkout@v2
55+
56+ - name : Set Tag
57+ run : |
58+ echo "::set-env name=TAG::${GITHUB_REF#refs/*/v}"
59+ echo "::set-env name=RELEASE_TAG::${TAG}"
60+
61+ - name : Run Trivy vulnerability scanner
62+ uses : aquasecurity/trivy-action@master
63+ with :
64+ image-ref : openebs/linux-utils:${{ env.RELEASE_TAG }}
65+ format : ' table'
66+ exit-code : ' 1'
67+ ignore-unfixed : true
68+ severity : ' CRITICAL,HIGH'
Original file line number Diff line number Diff line change 1- FROM alpine:3.10.3
1+ FROM alpine:3.12.0
22RUN apk add --no-cache util-linux
33
44ARG DBUILD_DATE
You can’t perform that action at this time.
0 commit comments