Security Audit #38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |