forked from mycloudnexus/cc-api-sandbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
873ec53
commit 8c56e56
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
on: | ||
push: | ||
|
||
jobs: | ||
npm-audit-scan-job: | ||
name: NPM Audit Scan for Vulnerabilities | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Source | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
|
||
- name: Step3 Install Dependencies | ||
run: npm install | ||
|
||
- name: NPM Audit Scan and Generate Report in JSON Format | ||
run: npm audit --json > npm-audit-results.json | ||
continue-on-error: true | ||
|
||
- name: Upload NPM Audit Scan Report to GitHub | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: npm-audit-results | ||
path: npm-audit-results.json | ||
|