Skip to content

Commit 0d98a41

Browse files
committed
actions: Dependency Security Scan
1 parent 3859bf1 commit 0d98a41

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Dependency Security Scan
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
scan:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
11+
- name: Install Node.js
12+
uses: actions/setup-node@v3
13+
with:
14+
node-version: '18'
15+
16+
- name: Install dependencies
17+
run: yarn install --frozen-lockfile
18+
19+
- name: Run GuardDog scan
20+
run: |
21+
pip install guarddog
22+
guarddog npm verify package.json --exclude potentially_compromised_email_domain --exclude unclaimed_maintainer_email_domain --exit-non-zero-on-finding
23+
24+
- name: Run npm-scan heuristic scan
25+
run: npx npm-scan
26+
27+
- name: Run Codebase Scanner (obfuscation detection)
28+
run: npx @mathiscode/codebase-scanner@latest npm .
29+

0 commit comments

Comments
 (0)