RetireJS produces an error exit code on successful run
UgniusV opened this issue · 1 comments
UgniusV commented
Retire.js version: (3.0.7
):
node version: (v16.16.0
):
Type:
Bug
Description:
RetireJS produces an error exit code (13) on successful run
Expected behaviour:
Exit code should be 0
Steps to reproduce:
❯ git clone https://github.com/jenkinsci/test-results-analyzer-plugin.git
Cloning into 'test-results-analyzer-plugin'...
remote: Enumerating objects: 1541, done.
remote: Total 1541 (delta 0), reused 0 (delta 0), pack-reused 1541
Receiving objects: 100% (1541/1541), 793.67 KiB | 447.00 KiB/s, done.
Resolving deltas: 100% (542/542), done.
❯ retire --js --jspath test-results-analyzer-plugin --outputformat cyclonedx
<?xml version="1.0"?>
<bom xmlns="http://cyclonedx.org/schema/bom/1.0" version="1">
<components>
------SNIP-----
</components>
</bom> <------ This is a successful run
/tmp/internal
❯ echo $?
13
eoftedal commented
This is documented in the README:
https://github.com/RetireJS/retire.js/blame/master/node/README.md#L39
--exitwith <code> Custom exit code (default: 13) when vulnerabilities are found