-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AAP-18703: run npm audit on wisdom-service react app (#778)
* AAP-18703: run npm audit on wisdom-service react app * Update dependencies to protect from vulnerabilities
- Loading branch information
Showing
3 changed files
with
98 additions
and
123 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,43 @@ | ||
name: Admin Portal - npm-audit | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- ansible_wisdom_console_react/** | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- ansible_wisdom_console_react/** | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
WORKING_DIRECTORY: ./ansible_wisdom_console_react | ||
|
||
steps: | ||
- name: Checkout commit | ||
uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20.x' | ||
cache: 'npm' | ||
cache-dependency-path: ${{env.WORKING_DIRECTORY}}/package-lock.json | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
working-directory: ${{env.WORKING_DIRECTORY}} | ||
|
||
- name: Run npm audit | ||
uses: oke-py/npm-audit-action@v2 | ||
with: | ||
audit_level: low | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
create_issues: false | ||
working_directory: ${{env.WORKING_DIRECTORY}} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
05475d1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.