File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -189,6 +189,11 @@ jobs:
189
189
- name : build image
190
190
run : make -j build/image/envbox
191
191
192
+ # We don't want to run Trivy on pull requests.
193
+ - name : Exit if not on main
194
+ if : github.ref != 'refs/heads/main'
195
+ run : exit 0
196
+
192
197
- name : Run Trivy vulnerability scanner
193
198
uses :
aquasecurity/[email protected]
194
199
with :
@@ -215,11 +220,6 @@ jobs:
215
220
steps :
216
221
- uses : actions/checkout@v3
217
222
218
- - name : Initialize CodeQL
219
- uses : github/codeql-action/init@v2
220
- with :
221
- languages : go
222
-
223
223
- name : Setup Go
224
224
uses : actions/setup-go@v3
225
225
with :
@@ -236,6 +236,11 @@ jobs:
236
236
path : ${{ steps.go-cache-paths.outputs.GOMODCACHE }}
237
237
key : ${{ runner.os }}-release-go-mod-${{ hashFiles('**/go.sum') }}
238
238
239
+ - name : Initialize CodeQL
240
+ uses : github/codeql-action/init@v2
241
+ with :
242
+ languages : go
243
+
239
244
- name : Perform CodeQL Analysis
240
245
uses : github/codeql-action/analyze@v2
241
246
You can’t perform that action at this time.
0 commit comments