Skip to content

Commit 2d34dbf

Browse files
committed
Run Semgrep OSS Scan for code
1 parent a32da95 commit 2d34dbf

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/static-analysis.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Static Analysis"
2+
3+
on:
4+
merge_group:
5+
pull_request:
6+
branches:
7+
- "v*.*"
8+
- "master"
9+
- "feature/*"
10+
push:
11+
branches:
12+
- "v*.*"
13+
- "master"
14+
- "feature/*"
15+
16+
jobs:
17+
semgrep:
18+
name: "Semgrep"
19+
runs-on: "ubuntu-latest"
20+
container:
21+
image: semgrep/semgrep
22+
23+
steps:
24+
- name: "Checkout"
25+
uses: "actions/checkout@v4"
26+
with:
27+
submodules: true
28+
29+
- name: "Scan"
30+
run: semgrep scan --error

.semgrepignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/.evergreen/
2+
/.github/
3+
/tests/

0 commit comments

Comments
 (0)