Skip to content

Security Audit

Security Audit #38

name: Security Audit
on:
push:
branches:
- master
pull_request:
schedule:
#nightly at 06:00 UTC (1am EST / 2am EDT)
- cron: '0 6 * * *'
jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: "18.20.4"
- run: npm ci
- run: npm run audit
security-audit-required:
needs: audit
if: always()
runs-on: ubuntu-latest
steps:
- if: github.event_name != 'pull_request' || startsWith(github.head_ref, 'release/')
run: if [ "${{ needs.audit.result }}" = "failure" ]; then exit 1; fi