Skip to content

Commit 76150a0

Browse files
committed
Add semgrep workflow
Signed-off-by: Samuel Giddins <[email protected]>
1 parent 315cbbb commit 76150a0

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/semgrep.yml

+25
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: "41 19 * * *"
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: semgrep/semgrep
22+
if: (github.actor != 'dependabot[bot]')
23+
steps:
24+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
25+
- run: semgrep ci

0 commit comments

Comments
 (0)