Security vulnerability scan #205
This file contains 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 vulnerability scan" | |
on: | |
schedule: | |
- cron: "20 0 * * *" | |
jobs: | |
npm-audit: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
package: | |
- fabric-ca-client | |
- fabric-common | |
- fabric-network | |
- fabric-protos | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Update npm | |
run: | | |
npm update --global npm | |
npm --version | |
- name: Scan | |
run: | | |
npm install --package-lock-only | |
npm audit --omit=dev | |
working-directory: ${{ matrix.package }} |