Skip to content

Commit 7f82d08

Browse files
authored
chore: add semgrep (#599)
1 parent 8e9f553 commit 7f82d08

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+
on:
3+
workflow_dispatch: {}
4+
pull_request: {}
5+
push:
6+
branches:
7+
- main
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: '35 11 * * *'
13+
jobs:
14+
semgrep:
15+
name: semgrep/ci
16+
runs-on: ubuntu-20.04
17+
env:
18+
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
19+
container:
20+
image: returntocorp/semgrep
21+
if: (github.actor != 'dependabot[bot]')
22+
steps:
23+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
24+
- run: semgrep ci

0 commit comments

Comments
 (0)