From 67bca5ab2aa668021de8a0ab620e891645b185e8 Mon Sep 17 00:00:00 2001 From: Mayank77maruti <125661248+Mayank77maruti@users.noreply.github.com> Date: Sat, 7 Dec 2024 21:31:08 +0530 Subject: [PATCH] security check added --- .github/workflows/security_scan.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/security_scan.yml diff --git a/.github/workflows/security_scan.yml b/.github/workflows/security_scan.yml new file mode 100644 index 0000000000..a377933d62 --- /dev/null +++ b/.github/workflows/security_scan.yml @@ -0,0 +1,27 @@ +name: Security Scans + +on: + push: + branches: + - main + pull_request: + workflow_dispatch: + +jobs: + security-scans: + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' + + - name: Install Dependencies + run: npm install + + - name: Run npm Audit + run: npm audit --audit-level=high || echo "npm audit failed" \ No newline at end of file