File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -262,18 +262,20 @@ jobs:
262
262
263
263
semgrep-static-code-analysis :
264
264
name : " semgrep checks"
265
- runs-on : ${{ matrix.os }}
266
- container :
267
- image : " returntocorp/semgrep"
265
+ runs-on : self-hosted
268
266
strategy :
269
267
matrix :
270
268
os : [ ubuntu-latest ]
271
269
steps :
272
270
- name : Check out source code
273
- uses : actions/checkout@v2
271
+ uses : actions/checkout@v3
274
272
- name : Scanning code on ${{ matrix.os }}
275
273
continue-on-error : false
276
274
run : |
275
+ # Install semgrep rather than using a container due to:
276
+ # https://github.com/actions/checkout/issues/334
277
+ sudo apt install -y python3-pip || apt install -y python3-pip
278
+ pip3 install semgrep
277
279
semgrep --config semgrep.yaml $(pwd)/portal-ui --error
278
280
279
281
no-warnings-and-make-assets :
You can’t perform that action at this time.
0 commit comments