Skip to content

Commit

Permalink
feat(ci): add monthly cron for npm audit (#50)
Browse files Browse the repository at this point in the history
* feat(ci): add monthly cron for npm audit

* fix(ci): remove slack notification
  • Loading branch information
dankreiger committed Jan 12, 2022
1 parent 574e4f5 commit 06a8557
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/npm-audit
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: NPM Audit

on:
schedule:
- cron: "0 0 1 * *"
workflow_dispatch:

jobs:
audit:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-
- name: Install Dependencies
run: yarn
- name: Run a security audit
run: npx audit-ci --critical --report-type summary

0 comments on commit 06a8557

Please sign in to comment.