Skip to content

Commit 5a01594

Browse files
committed
chore: configure semgrep ci job
1 parent a744da0 commit 5a01594

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
node-version: [12.x, 14.x, 15.x, 16.x., 18.x]
11+
node-version: [12.x, 14.x, 15.x, 16.x, 18.x]
1212
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
1313

1414
steps:

.github/workflows/semgrep.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Semgrep
2+
3+
on:
4+
pull_request_target: {}
5+
push:
6+
branches: ["master", "main"]
7+
jobs:
8+
semgrep:
9+
name: Scan
10+
runs-on: ubuntu-latest
11+
container:
12+
image: returntocorp/semgrep
13+
if: (github.actor != 'dependabot[bot]' && github.actor != 'snyk-bot')
14+
steps:
15+
- uses: actions/checkout@v3
16+
- run: semgrep ci
17+
env:
18+
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}

0 commit comments

Comments
 (0)