Skip to content

Commit

Permalink
ci: Add workflow to automatically run npm audit fix weekly (#1422)
Browse files Browse the repository at this point in the history
- Scheduled to run every Thursday morning at 6am UTC (2am ET)
- Opens a PR automatically
- PR still needs to be reviewed/approved
  • Loading branch information
mofojed authored Jul 27, 2023
1 parent 0d61220 commit 3247d27
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/audit-fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Automatically run `npm audit fix` every Thursday morning and open a PR if there are changes
name: Audit fix
on:
schedule:
- cron: '0 6 * * 4'
jobs:
audit_fix:
runs-on: ubuntu-22.04
name: Run npm audit fix
steps:
- name: Checkout latest
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
- name: Run npm audit fix
# There may be some packages that can't be updated automatically. We don't want that to error out this step.
continue-on-error: true
run: npm audit fix
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
base: main
title: 'chore: npm audit fix'
branch: deephaven-bot/npm-audit-fix
delete-branch: true

0 comments on commit 3247d27

Please sign in to comment.