Skip to content

Commit fcdae0f

Browse files
committed
Add Semgrep CI
1 parent 63b24e6 commit fcdae0f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/semgrep.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
on:
2+
workflow_dispatch: {}
3+
pull_request: {}
4+
push:
5+
branches:
6+
- main
7+
- master
8+
paths:
9+
- .github/workflows/semgrep.yml
10+
schedule:
11+
# random HH:MM to avoid a load spike on GitHub Actions at 00:00
12+
- cron: 38 15 * * *
13+
name: Semgrep
14+
jobs:
15+
semgrep:
16+
name: semgrep/ci
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read
20+
env:
21+
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
22+
container:
23+
image: semgrep/semgrep
24+
steps:
25+
- uses: actions/checkout@v4
26+
- run: semgrep ci

0 commit comments

Comments
 (0)