Skip to content

Commit fa41365

Browse files
Create semgrep-ci.yml
1 parent eff765f commit fa41365

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/semgrep-ci.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Semgrep
2+
on:
3+
workflow_dispatch: {}
4+
pull_request: {}
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- .github/workflows/semgrep-ci.yml
10+
schedule:
11+
# random HH:MM to avoid a load spike on GitHub Actions at 00:00
12+
- cron: '10 13 * * *'
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: semgrep/semgrep
21+
if: (github.actor != 'dependabot[bot]')
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Log in to Semgrep
25+
run: semgrep login
26+
- run: semgrep ci

0 commit comments

Comments
 (0)