Skip to content

sonatype-nexus-community/example-auditjs-repo

Example AuditJS Repo

CircleCI

Build Status

This repo contains examples on how to use AuditJS in:

  • CircleCI
  • TravisCI
  • GitHub Actions

Jenkins example TBD

Usage in CircleCI

Please refer to the .circleci/config.yml for a working config on using auditjs in CircleCI.

NOTES:

  • We run auditjs using npx as this prevents a global install. If you want it to be longer lived, you can install globally.
  • We use --xml to output a JUnit type XML test result format, and then save that so that you can view vulnerable dependencies as test failures. This is entirely a suggestion, you do not need to do that if you don't want to.

Usage in TravisCI

Please refer to the .travis.yml for a working config on using auditjs in TravisCI.

NOTES:

  • We run auditjs using npx as this prevents a global install. If you want it to be longer lived, you can install globally.

Usage with GitHub Actions

Please refer to the .github/workflows/nodejs.yml for a working config on using auditjs in TravisCI. You can see the output generated by looking at the action on this repo.

NOTES:

  • We run auditjs using npx as this prevents a global install. If you want it to be longer lived, you can install globally.

The Fine Print

This repo is meant for informational purposes, copy-pasta at your own risk :)

You can get to the main auditjs repo by clicking here.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published