Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

umutphp/gitlabci-npm-audit-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

gitlabci-npm-audit-script

The script is for adding 'npm audit' as a step to GitlabCI pipeline. stedolan/jq/ is used to parse the json on bash.

The script parses the 'npm audit' result json and gives the proper exit code. When 'Exit 1' is fired, a summary and a detailed json is displayed.

A sample step definition in .gitlab-ci.yml would be;

test_async:
 stage: check
 image:node
 script:
 - bash /path/to/npm-audit-step.sh

About

The script for adding "npm audit" as a step to GitlabCI pipeline.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /