Skip to content

Commit 9daef55

Browse files
committed
Action:Semgrep security monitoring
1 parent 3e3ad39 commit 9daef55

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/semgrep.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Semgrep
2+
3+
on:
4+
# Scan changed files in PRs (diff-aware scanning):
5+
pull_request: {}
6+
# Scan on-demand through GitHub Actions interface:
7+
workflow_dispatch: {}
8+
# Scan mainline branches and report all findings:
9+
push:
10+
branches: ["master"]
11+
12+
jobs:
13+
semgrep:
14+
name: semgrep/ci
15+
runs-on: ubuntu-latest
16+
17+
container:
18+
image: returntocorp/semgrep
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
- run: semgrep ci --include=bin/* --include=ext/* --include=lib/*
23+
env:
24+
SEMGREP_RULES: p/default

0 commit comments

Comments
 (0)