Skip to content

Security Audit (Nightly) #105

Security Audit (Nightly)

Security Audit (Nightly) #105

name: Security Audit (Nightly)
on:
schedule:
- cron: '0 2 * * *' # 02:00 UTC daily
workflow_dispatch:
permissions:
contents: read
jobs:
nightly-audit:
name: npm audit (Nightly report)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Node & Install
uses: ./.github/actions/setup-node
with:
node-version: '22.x'
- name: Run audit and notify (no-fail)
run: node scripts/security/audit-and-notify.mjs --scope=all --ci-mode=nightly --no-fail
env:
# Nightly can still respect repo-level knobs
SECURITY_ALERT_LEVEL: ${{ vars.SECURITY_ALERT_LEVEL || 'critical' }}
SECURITY_AUDIT_VERBOSE: ${{ vars.SECURITY_AUDIT_VERBOSE || 'false' }}
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
DISCORD_WEBHOOK_CRITICAL: ${{ secrets.DISCORD_WEBHOOK_CRITICAL }}
DISCORD_WEBHOOK_OPS: ${{ secrets.DISCORD_WEBHOOK_OPS }}