Skip to content

Commit 7f1717c

Browse files
committed
CI: run Semgrep via Docker (security-audit + php)
1 parent 5738fe6 commit 7f1717c

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/semgrep.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,16 @@ jobs:
2020
- uses: actions/checkout@v4
2121

2222
- name: Run Semgrep
23-
uses: returntocorp/semgrep-action@v1
24-
with:
25-
config: p/security-audit
26-
generateSarif: "1"
23+
run: |
24+
docker run --rm -v "$PWD":/src -w /src returntocorp/semgrep:latest \
25+
semgrep \
26+
--config p/security-audit \
27+
--config p/php \
28+
--sarif \
29+
--output semgrep.sarif \
30+
--metrics off
2731
2832
- name: Upload SARIF
2933
uses: github/codeql-action/upload-sarif@v3
3034
with:
3135
sarif_file: semgrep.sarif
32-

0 commit comments

Comments
 (0)