Skip to content

Commit 320d70d

Browse files
Steven PehSteven Peh
authored andcommitted
Added semgrep
1 parent 70a3051 commit 320d70d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/node.js.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
33

4-
name: Node.js CI
4+
name: Node.js CI & Semgrep Scan
55

66
on:
77
push:
@@ -28,3 +28,15 @@ jobs:
2828
cache: 'npm'
2929
- run: npm ci
3030
- run: npm test
31+
32+
semgrep:
33+
name: Semgrep Scan
34+
runs-on: ubuntu-latest
35+
steps:
36+
# It also needs to check out the code to be able to scan it
37+
- name: Checkout repository
38+
uses: actions/checkout@v4
39+
40+
# Run the official Semgrep action
41+
- name: Run Semgrep
42+
uses: semgrep/semgrep-action@v2

0 commit comments

Comments
 (0)