Skip to content

Commit 2ab371b

Browse files
Update semgrep action to newer version (#139)
1 parent 46305eb commit 2ab371b

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/semgrep.yml

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