Skip to content

Commit 1e23718

Browse files
authored
Update semgrep.yml
1 parent 15aa9c9 commit 1e23718

File tree

1 file changed

+14
-19
lines changed

1 file changed

+14
-19
lines changed

.github/workflows/semgrep.yml

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
1+
name: Semgrep
2+
13
on:
2-
workflow_dispatch: {}
3-
pull_request: {}
44
push:
5-
branches:
6-
- main
7-
- master
8-
paths:
9-
- .github/workflows/semgrep.yml
10-
schedule:
11-
# random HH:MM to avoid a load spike on GitHub Actions at 00:00
12-
- cron: 6 20 * * *
13-
name: Semgrep
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
149
jobs:
1510
semgrep:
16-
name: semgrep/ci
17-
runs-on: ubuntu-20.04
18-
env:
19-
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
20-
container:
21-
image: returntocorp/semgrep
11+
runs-on: ubuntu-latest
2212
steps:
23-
- uses: actions/checkout@v4
24-
- run: semgrep ci
13+
- uses: actions/checkout@v3
14+
15+
- uses: returntocorp/semgrep-action@v1
16+
with:
17+
config: >-
18+
p/default # Use Semgrep's default open-source security rules
19+

0 commit comments

Comments
 (0)