Closed jgadsden closed 1 year ago
Feel free to pullrequest the needed changes.
But in general, I'd suggest switching to cyclonedx-npm which has a lot more options, instead of using this rudimentary GH action.
good point @jkowalleck , it was just useful to use a simple github action in the release process but I agree it can be done in other ways. I wanted to use the CycloneDX action rather than anchore/sbom-action because CycloneDX is OWASP and so is Threat Dragon
looking at the code I am surprised the json option works because it is not used in index.js
, but this shows my limited knowledge of how the github actions actually run - because it does indeed output both json and xml
generating json output is controlled by putting a .json
file as the output.
nothing more to it.
see the docs: https://www.npmjs.com/package/@cyclonedx/bom/v/3.10.6
Thankyou @jkowalleck , this explains it and I will decline my pull request
The
json
option was removed in commit 151e37abb84ebcbcbb4d2cc780b89fa98f23b1b1 , but only from theREADME.md
andaction.yml
filesThis means that JSON output is still possible, for example using:
and the JSON output is obtained after displaying a warning:
Warning: Unexpected input(s) 'json', valid inputs are ['path', 'output']
Could we reinstate the use of
json
option and get rid of the warning fromaction.yml
? This would be my preferred outcome rather than removingjson
option altogether