Skip to content

Commit 38a4e89

Browse files
committed
chore(github): add security checks
1 parent 34687d7 commit 38a4e89

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/security.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Security
2+
3+
on: [push, workflow_dispatch]
4+
5+
jobs:
6+
vuln-dep-check:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v4
11+
- name: Install node
12+
uses: actions/setup-node@v4
13+
with:
14+
node-version-file: '.nvmrc'
15+
cache: npm
16+
- name: npm audit
17+
run: npx audit-ci@^6 --config ./audit-ci.jsonc
18+
semgrep:
19+
runs-on: ubuntu-latest
20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.ref }}
22+
env:
23+
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
24+
container:
25+
image: returntocorp/semgrep
26+
steps:
27+
- uses: actions/checkout@v4
28+
- run: semgrep ci
29+

audit-ci.jsonc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"high": true,
3+
"allowlist": [],
4+
}

0 commit comments

Comments
 (0)