Skip to content

Commit 8611816

Browse files
authored
Create semgrep.yml (#184)
## What was changed Add Github workflow to scan PRs with Semgrep. ## Why? This will eventually be an org-wide required workflow, but Github won't let us have access to it yet, so this PR manually adds scanning. ## Checklist How was this tested: Added manually in this way to many other repos with no issue.
1 parent 70351f0 commit 8611816

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: '15 21 * * *'
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)