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:
262262
263263 semgrep-static-code-analysis :
264264 name : " semgrep checks"
265- runs-on : ${{ matrix.os }}
266- container :
267- image : " returntocorp/semgrep"
265+ runs-on : self-hosted
268266 strategy :
269267 matrix :
270268 os : [ ubuntu-latest ]
271269 steps :
272270 - name : Check out source code
273- uses : actions/checkout@v2
271+ uses : actions/checkout@v3
274272 - name : Scanning code on ${{ matrix.os }}
275273 continue-on-error : false
276274 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
277279 semgrep --config semgrep.yaml $(pwd)/portal-ui --error
278280
279281 no-warnings-and-make-assets :
You can’t perform that action at this time.
0 commit comments