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
23 changes: 23 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: 2
updates:
# Keep package.json dependencies patched. Combined with GitHub's
# Dependabot security updates (enabled in repo Settings > Security),
# this opens PRs for both routine version bumps and CVE fixes.
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
groups:
# Batch low-risk dev tooling updates into a single PR to cut noise.
dev-dependencies:
dependency-type: "development"
update-types:
- "minor"
- "patch"

# Keep the GitHub Actions used by these workflows up to date.
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
44 changes: 44 additions & 0 deletions .github/workflows/security-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Security Audit

on:
push:
branches: [main]
pull_request:
branches: [main]
# Run on a weekly schedule so newly-disclosed CVEs in existing
# dependencies are surfaced even when there are no code changes.
schedule:
- cron: "0 6 * * 1"
workflow_dispatch:

jobs:
audit:
name: npm audit (dependencies)
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "npm"

- name: Install dependencies
run: npm ci

# Gating check: fail the build on high/critical vulnerabilities in
# the production dependencies declared in package.json. These are the
# ones that ship to consumers of the SDK (and show up in their Wiz
# scans), so they get the strictest treatment.
- name: Audit production dependencies
run: npm audit --omit=dev --audit-level=high

# Informational: report the full picture (including dev/transitive
# dependencies) without failing the build.
- name: Audit all dependencies (report only)
if: always()
run: npm audit
continue-on-error: true
Loading
Loading