Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Run security audit
run: npm audit --audit-level=moderate
- name: Run security audit (production dependencies)
run: npm audit --omit=dev --audit-level=moderate

- name: Check for known vulnerabilities
run: npx audit-ci --moderate
- name: Check for known vulnerabilities (all dependencies, allowlisted dev-only advisories)
run: npx audit-ci --config audit-ci.jsonc

package-check:
name: Package Validation
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Run npm audit
run: npm audit --audit-level=moderate
- name: Run npm audit (production dependencies)
run: npm audit --omit=dev --audit-level=moderate

- name: Run audit-ci
run: npx audit-ci --moderate
- name: Run audit-ci (all dependencies, allowlisted dev-only advisories)
run: npx audit-ci --config audit-ci.jsonc

- name: Check for known vulnerabilities with Snyk
uses: snyk/actions/node@master
Expand Down
15 changes: 15 additions & 0 deletions audit-ci.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://github.com/IBM/audit-ci/raw/main/docs/schema.json",
"moderate": true,
"show-not-found": true,
// Dev-only advisories with no upstream fix yet (2026-11-21).
// Production deps are audited separately via `npm audit --omit=dev`, so these
// stay blocked if they ever reach the published package.
// Remove each entry once jest/ts-jest and typedoc allow the patched versions.
"allowlist": [
// glob 9.0.0-14.0.1 (fixed 14.0.2): via jest 30 (^13) and test-exclude
"GHSA-3g3m-2fjr-6pw4",
// minimatch 7.0.0-11.0.0 (fixed 11.0.1): via typedoc 0.28 (^10) and test-exclude
"GHSA-g3hv-75wg-m249"
]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@
"postversion": "git push && git push --tags",
"docs": "typedoc src/index.ts --out api-docs",
"docs:update-version": "node scripts/update-docs-version.js",
"security:audit": "npm audit --audit-level=moderate",
"security:check": "npx audit-ci --moderate",
"security:audit": "npm audit --omit=dev --audit-level=moderate",
"security:check": "npx audit-ci --config audit-ci.jsonc",
"security:update": "npx npm-check-updates -u && npm install && npm test",
"security:verify": "node scripts/check-security.js",
"prepare": "husky"
Expand Down
Loading