https://github.com/cloudstek/yarn-audit-junit
Convert yarn audit JSON log to JUnit format
https://github.com/cloudstek/yarn-audit-junit
Last synced: 13 days ago
JSON representation
Convert yarn audit JSON log to JUnit format
- Host: GitHub
- URL: https://github.com/cloudstek/yarn-audit-junit
- Owner: Cloudstek
- License: mit
- Created: 2022-03-31T16:19:59.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-31T16:20:48.000Z (about 3 years ago)
- Last Synced: 2025-02-15T15:19:36.819Z (2 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yarn-audit-junit
Very simple script to convert the JSON log output of `yarn audit` to JUnit XML format. Useful for CI pipelines to report
on any vulnerabilities.The result does not include all the original details found in the JSON output by yarn but enough for my CI purposes.
## Requirements
- NodeJS 14+
## Installation
```shell
# Local
$ yarn add @cloudstek/yarn-audit-junit --dev
# Global
$ yarn global add @cloudstek/yarn-audit-junit
```## Usage
```shell
# Local
$ yarn audit | ./node_modules/.bin/yarn-audit-junit
# Global
$ yarn audit | yarn-audit-junit
```