File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 34
34
build-file : .github/Dockerfile
35
35
build-context : .
36
36
37
+ vulnerability-scanner :
38
+ needs : [ build ]
39
+ runs-on : ubuntu-latest
40
+ steps :
41
+ - uses : actions/checkout@v3
42
+ - uses : ./.github/actions/load-tar-image
43
+ - name : Run Trivy vulnerability scanner
44
+ uses : aquasecurity/trivy-action@master
45
+ with :
46
+ image-ref : ${{ env.IMAGE_NAME }}
47
+ format : ' sarif'
48
+ output : ' trivy-results.sarif'
49
+ exit-code : ' 1'
50
+ severity : ' MEDIUM,HIGH,CRITICAL'
51
+ - name : Upload Trivy scan results to GitHub Security tab
52
+ uses : github/codeql-action/upload-sarif@v2
53
+ if : always()
54
+ with :
55
+ sarif_file : ' trivy-results.sarif'
56
+
37
57
e2e-tests :
38
58
needs : [ build ]
39
59
strategy :
61
81
expected : ${{ matrix.data.expected }}
62
82
63
83
push :
84
+ needs : [ version, build, e2e-tests, vulnerability-scanner ]
64
85
runs-on : ubuntu-latest
65
- needs : [ version, build, e2e-tests ]
66
86
name : ${{ needs.version.outputs.releasable == 'true' && 'push' || 'push (dry-run)' }}
67
87
permissions :
68
88
packages : write
You can’t perform that action at this time.
0 commit comments