Skip to content

Commit 8613a5b

Browse files
DominicGBauerDominicGBauer
andauthored
chore: add audit check (#375)
Co-authored-by: DominicGBauer <[email protected]>
1 parent b1f8c15 commit 8613a5b

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/audit.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Audit
2+
3+
on:
4+
push:
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
audit:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Repo
15+
uses: actions/checkout@v4
16+
- uses: pnpm/action-setup@v4
17+
name: Install pnpm
18+
with:
19+
version: 9
20+
run_install: false
21+
- name: Audit for vulnerabilities
22+
run: npx audit-ci@^7 --config ./audit-ci.jsonc

audit-ci.jsonc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"critical": true,
3+
"package-manager": "auto",
4+
"registry": "https://registry.npmjs.org"
5+
}

0 commit comments

Comments
 (0)