The audit command submits a description of the dependencies configured in your project to your default registry and asks for a report of known vulnerabilities.
The npm version depends on the Node.js version.
Patterns to include in execution and reports.
Note: Inspecode runs npm audit for each Node.js project and the input patterns are used for selecting Node.js projects containing input files. Therefore, the files excluded by the patterns are processed if they are contained in Node.js projects that also contain input files, and you may even see logs related to the excluded files in the job console.
Patterns to exclude from execution and reports.
Note: Just like
input:, the ignore patterns may not be applied completely when running npm audit.
"--force": Have audit fix install semver-major updates to toplevel dependencies, not just semver-compatible ones. "--package-lock-only": Run audit fix without modifying node_modules, but still updating the pkglock. "--production": Skip updating devDependencies. "--only": Select updating only dev|prod dependencies.
Amount of CPU. The default machine has
0.75 CPU with
2880 MiB RAM.
In addition to general severity levels, the following tool specific severity levels can be specified:
high(equivalent to general severity level
moderate(equivalent to general severity level
low(equivalent to general severity level
Note: The incremental analysis cannot be supported for npm audit.
No tool specific experimental options are available.
With default options:
inspecode: tools: npm-audit: default
With custom machine:
inspecode: tools: npm-audit: machine: cpu: 1.5 # 1.5 CPU, 5760 MiB RAM
With custom options:
inspecode: tools: npm-audit: auto-fix: true options: --only: prod