Skip to content

Commit faa1124

Browse files
authored
chore: Add Semgrep scanning (#1130)
1 parent 0d838ca commit faa1124

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+
on:
3+
workflow_dispatch: {}
4+
pull_request: {}
5+
push:
6+
branches:
7+
- main
8+
- master
9+
paths:
10+
- .github/workflows/semgrep.yml
11+
schedule:
12+
# random HH:MM to avoid a load spike on GitHub Actions at 00:00
13+
- cron: '14 20 * * *'
14+
jobs:
15+
semgrep:
16+
name: semgrep/ci
17+
runs-on: ubuntu-20.04
18+
env:
19+
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
20+
container:
21+
image: returntocorp/semgrep
22+
if: (github.actor != 'dependabot[bot]')
23+
steps:
24+
- uses: actions/checkout@v3
25+
- run: semgrep ci

0 commit comments

Comments
 (0)