Skip to content

Commit

Permalink
delete node.js vul workflow, add check vul in circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
nil2022 committed Jan 12, 2024
1 parent e3fdcc2 commit 29aa3cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 39 deletions.
26 changes: 10 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,7 @@ orbs:
node: circleci/[email protected]

jobs:
check-node-version:
executor: node/default
steps:
- checkout
- node/install-packages:
pkg-manager: npm
- run:
command: node -v
name: Check Node.js Version

check-vulnerabilities:
fix-vulnerabilities:
executor: node/default
docker:
- image: cimg/node:20.11.0-browsers
Expand All @@ -24,18 +14,23 @@ jobs:
- node/install-packages:
pkg-manager: npm
- run:
command: npm audit fix --force --json
name: Run Vulnerability Scan
command: npm audit --json
- run:
name: Fix Vulnerabilities

command: npm audit fix --force --json

build-app:
executor: node/default
docker:
- image: cimg/node:20.11.0-browsers
steps:
- checkout
- node/install-packages:
pkg-manager: npm
- run:
command: npm install
name: Build app
command: npm install
# - persist_to_workspace:
# root: ~/project
# paths:
Expand All @@ -52,8 +47,7 @@ jobs:
workflows:
check-fix-build-app:
jobs:
- check-node-version
- check-vulnerabilities
- fix-vulnerabilities
- build-app
# - deploy:
# requires:
Expand Down
23 changes: 0 additions & 23 deletions .github/workflows/main.yml

This file was deleted.

0 comments on commit 29aa3cd

Please sign in to comment.