Skip to content

Commit 2a796c1

Browse files
committed
chore: add audit workflow
1 parent ba144ad commit 2a796c1

3 files changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/audit.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Security Audit
2+
3+
on:
4+
push:
5+
schedule:
6+
- cron: "0 0 * * *"
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
check:
13+
permissions:
14+
checks: write
15+
contents: read
16+
issues: write
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v5
20+
21+
- name: Audit check
22+
run: npx audit-ci --moderate --allowlist GHSA-qm9p-f9j5-w83w
23+
24+
- name: License check
25+
run: |
26+
npx license-checker-rseidelsohn \
27+
--onlyAllow "MIT;Apache-2.0;BSD-2-Clause;BSD-3-Clause;ISC;MPL-2.0;CC-BY-4.0;0BSD"

0 commit comments

Comments
 (0)