Skip to content

Commit 9539a8e

Browse files
authored
Migrate semgrep to datacenter (#2271)
1 parent f11b9bf commit 9539a8e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/jobs.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)