Skip to content

Commit 17d5036

Browse files
authored
Merge pull request #111 from auth0/semgrep-update
Update semgrep action to newer version
2 parents 89fa6e9 + bc6726f commit 17d5036

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/semgrep.yml

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
name: Semgrep
2+
23
on:
3-
pull_request: {}
4+
pull_request_target: {}
45
push:
5-
branches:
6-
- main
6+
branches: ["master", "main"]
7+
permissions:
8+
contents: read
79
jobs:
810
semgrep:
911
name: Scan
1012
runs-on: ubuntu-latest
11-
if: (github.actor != 'dependabot[bot]')
13+
container:
14+
image: returntocorp/semgrep
15+
if: (github.actor != 'dependabot[bot]' && github.actor != 'snyk-bot')
1216
steps:
13-
- uses: actions/checkout@v2
14-
- uses: returntocorp/semgrep-action@v1
15-
with:
16-
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

Comments
 (0)