Skip to content

Commit

Permalink
Update security.yml
Browse files Browse the repository at this point in the history
Add comments and correct npm step names
  • Loading branch information
atomaro authored and michaelhm committed Oct 8, 2020
1 parent ae73fca commit ca3b53a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ on:
jobs:
build:
name: Security Checks
runs-on: ubuntu-latest
strategy:
runs-on: ubuntu-latest # Workflow should run on latest version of ubuntu
strategy: #Specifies build matrix that runs project on three Node.js versions: 10.x, 12.x, and 14.x
matrix:
node-version: [10.x, 12.x, 14.x]

Expand All @@ -23,15 +23,15 @@ jobs:
node-version: ${{ matrix.node-version }}

# Installs packages defined in package.json file so that twly can be properly used.
- name: Install NPM Packages
- name: Install npm Packages
run: npm install

# Dependencies fail an audit if the results include a vulnerability with a level of moderate or higher
- name: NPM Audit Production Level Moderate
- name: npm Audit Production Level Moderate
run: npm audit --production --audit-level=moderate

# Dependencies fail an audit if the results include a vulnerability with a level of critical or higher
- name: NPM Audit level Critical
- name: npm Audit level Critical
run: npm audit --audit-level=critical

# Runs Twly to determine how "dry" The codebase is
Expand Down

0 comments on commit ca3b53a

Please sign in to comment.