We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 89fa6e9 + bc6726f commit 17d5036Copy full SHA for 17d5036
.github/workflows/semgrep.yml
@@ -1,16 +1,20 @@
1
name: Semgrep
2
+
3
on:
- pull_request: {}
4
+ pull_request_target: {}
5
push:
- branches:
6
- - main
+ branches: ["master", "main"]
7
+permissions:
8
+ contents: read
9
jobs:
10
semgrep:
11
name: Scan
12
runs-on: ubuntu-latest
- if: (github.actor != 'dependabot[bot]')
13
+ container:
14
+ image: returntocorp/semgrep
15
+ if: (github.actor != 'dependabot[bot]' && github.actor != 'snyk-bot')
16
steps:
- - uses: actions/checkout@v2
- - uses: returntocorp/semgrep-action@v1
- with:
- publishToken: ${{ secrets.SEMGREP_APP_TOKEN }}
17
+ - uses: actions/checkout@v3
18
+ - run: semgrep ci
19
+ env:
20
+ SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
0 commit comments