I'm currently using npm audit in my GitLab CI pipeline, and it's working well. I have a JSON file that lists the dependencies needing updates.
Now, I'd like the pipeline to fail whenever a dependency is outdated.
In other languages, such as PHP or Pip, there are ways to force the pipeline to fail.
Any suggestions on how to achieve this?
image: "registry.gitlab.com/gitlab-org/security-products/analyzers/npm-audit:1.4.0"
stage: security-check
variables:
TOOL: npm
script:
- /analyzer run
artifacts:
reports:
dependency_scanning: gl-dependency-scanning-report.json
paths:
- gl-dependency-scanning-report.json