File tree 1 file changed +32
-0
lines changed
1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 55
55
env :
56
56
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
57
57
58
+ trivy :
59
+ runs-on : ubuntu-latest
60
+
61
+ permissions :
62
+ contents : read
63
+ security-events : write
64
+ actions : read
65
+
66
+ steps :
67
+ - name : Checkout
68
+ uses : actions/checkout@v4
69
+
70
+ - name : Setup Go
71
+ uses : actions/setup-go@v5
72
+ with :
73
+ go-version-file : ./go.mod
74
+
75
+ - name : Download Go modules
76
+ run : go mod download
77
+
78
+ - name : Run Trivy vulnerability scanner in repo mode
79
+ uses :
aquasecurity/[email protected]
80
+ with :
81
+ scan-type : " fs"
82
+ format : " sarif"
83
+ output : " trivy-results.sarif"
84
+
85
+ - name : Upload Trivy scan results to GitHub Security tab
86
+ uses : github/codeql-action/upload-sarif@v3
87
+ with :
88
+ sarif_file : " trivy-results.sarif"
89
+
58
90
build :
59
91
runs-on : ubuntu-latest
60
92
You can’t perform that action at this time.
0 commit comments