Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 652 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 652 Bytes

npm_audit_action

This action runs npm audit.

Inputs

severity

The minimum severity level of a vulnerability that will cause the action to fail. Default "low".

title

A string, that if found in a vulnerability title will cause the action to fail.

Example usage

on:
  pull_request:
    types: [opened, synchronize]

jobs:
  npm_audit_job:
    runs-on: ubuntu-latest
    name: npm audit action
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: npm audit action step
        uses: liorfrank/[email protected]
        with:
          severity: 'high'
          title: 'Injection'