File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Docker security scan
2+ on :
3+ push :
4+ branches :
5+ - main
6+ pull_request :
7+ jobs :
8+ build :
9+ name : Build
10+ runs-on : ubuntu-20.04
11+ if : ${{ !contains(github.event.head_commit.message, 'docs:') }}
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v4
15+
16+ - name : Build an image from Dockerfile
17+ run : |
18+ docker buildx install
19+ docker buildx build --load --platform linux/amd64 -t docker.io/sitespeedio/node:${{ github.sha }} .
20+
21+ - name : Run Trivy vulnerability scanner
22+ uses : aquasecurity/trivy-action@master
23+ with :
24+ image-ref : ' docker.io/sitespeedio/node:${{ github.sha }}'
25+ format : ' table'
26+ exit-code : ' 1'
27+ ignore-unfixed : true
28+ vuln-type : ' os,library'
29+ severity : ' CRITICAL'
You can’t perform that action at this time.
0 commit comments