| 1 |
# This file is automatically added by @npmcli/template-oss. Do not edit. |
| 2 |
|
| 3 |
name: Audit |
| 4 |
|
| 5 |
on: |
| 6 |
workflow_dispatch: |
| 7 |
schedule: |
| 8 |
# "At 01:00 on Monday" https://crontab.guru/#0_1_*_*_1 |
| 9 |
- cron: "0 1 * * 1" |
| 10 |
|
| 11 |
jobs: |
| 12 |
audit: |
| 13 |
runs-on: ubuntu-latest |
| 14 |
steps: |
| 15 |
- uses: actions/checkout@v3 |
| 16 |
- name: Setup git user |
| 17 |
run: | |
| 18 |
git config --global user.email "[email protected]" |
| 19 |
git config --global user.name "npm CLI robot" |
| 20 |
- uses: actions/setup-node@v3 |
| 21 |
with: |
| 22 |
node-version: 16.x |
| 23 |
- name: Update npm to latest |
| 24 |
run: npm i --prefer-online --no-fund --no-audit -g npm@latest |
| 25 |
- run: npm -v |
| 26 |
- run: npm i --ignore-scripts --no-audit --no-fund --package-lock |
| 27 |
- run: npm audit |