Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO-NOT_MERGE AAP-18703: run npm audit on wisdom-service react app #777

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/npm_audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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 }}
issue_assignees: oke-py
issue_labels: vulnerability,test
create_issues: false
working_directory: ${{env.WORKING_DIRECTORY}}
3 changes: 3 additions & 0 deletions ansible_wisdom_console_react/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
DO NOT MERGE

change to trigger audit
# Ansible Lightspeed "Admin Portal"

> **Warning:** `package.json homepage` setting.
Expand Down
Loading