Skip to content

Commit

Permalink
ci: check for dependency vulnerabilities on push
Browse files Browse the repository at this point in the history
  • Loading branch information
hamirmahal committed Oct 6, 2023
1 parent a3ec3e4 commit b1c4406
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/yarn-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Check for vulnerabilities
on: [push]
jobs:
yarn-audit:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'

- name: Install dependencies
run: yarn

- name: Run yarn audit
run: |
yarn audit
exit $?

0 comments on commit b1c4406

Please sign in to comment.