Skip to content

Commit 994a3b4

Browse files
authored
Create semgrep.yml
1 parent 5d8db2d commit 994a3b4

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/semgrep.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Semgrep
2+
3+
on:
4+
pull_request: {}
5+
6+
push:
7+
branches: ["master", "main"]
8+
9+
schedule:
10+
- cron: '30 0 1,15 * *'
11+
12+
jobs:
13+
semgrep:
14+
name: Scan
15+
runs-on: ubuntu-latest
16+
container:
17+
image: returntocorp/semgrep
18+
# Skip any PR created by dependabot to avoid permission issues
19+
if: (github.actor != 'dependabot[bot]')
20+
steps:
21+
- uses: actions/checkout@v3
22+
23+
- run: semgrep ci
24+
env:
25+
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}

0 commit comments

Comments
 (0)