Skip to content

Commit 80d7b17

Browse files
authored
chore(infra): add semgrep (Uniswap#788)
adds semgrep
1 parent dced666 commit 80d7b17

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/semgrep.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Semgrep
2+
on:
3+
workflow_dispatch: {}
4+
pull_request: {}
5+
push:
6+
branches:
7+
- main
8+
schedule:
9+
# random HH:MM to avoid a load spike on GitHub Actions at 00:00
10+
- cron: '35 11 * * *'
11+
jobs:
12+
semgrep:
13+
name: semgrep/ci
14+
runs-on: ubuntu-20.04
15+
env:
16+
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
17+
container:
18+
image: returntocorp/semgrep
19+
if: (github.actor != 'dependabot[bot]')
20+
steps:
21+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
22+
- run: semgrep ci

0 commit comments

Comments
 (0)