Skip to content

Commit 592fc4f

Browse files
PIA-1914: Add semgrep static analyzer to CI (#19)
1 parent 26b9a65 commit 592fc4f

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/semgrep.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Security / Semgrep
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
semgrep:
11+
name: Security / Semgrep
12+
runs-on: ubuntu-latest
13+
container:
14+
image: semgrep/semgrep:1.68.0
15+
if: (github.actor != 'dependabot[bot]')
16+
steps:
17+
- name: Checkout source repository
18+
uses: actions/checkout@v4
19+
- name: Scan with Semgrep
20+
env:
21+
# Connect to Semgrep Cloud Platform
22+
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
23+
run: |
24+
semgrep ci \
25+
--code \
26+
--secrets \
27+
--supply-chain \
28+
--pro \
29+
--no-suppress-errors

0 commit comments

Comments
 (0)