feat: populate metadata.component.externalReferences
VCS and build-system from common CI environment variables
#1344
Labels
enhancement
New feature or request
Is your feature request related to a problem? Please describe.
To improve traceability of a given SBOM, it would be fantastic if the
metadata.component.externalReferences
were populated for thevcs
andbuild-system
URLs. These can be obtained via well-known environment variables in many CI systems.Describe the solution you'd like
The
_helper.ts
could be extended with code to detect the build-system and VCS from common CI environment variables:...
Then
plugin.ts#makeRootComponent
could be updated to end with the following instead of justreturn builder.makeComponent(thisPackageJson)
:Describe alternatives you've considered
An alternative would be to allow these values to be specified as configuration options.
Additional context
git
: feat: add git external reference. cyclonedx-gradle-plugin#520I'm more than happy to put in a PR with these changes - but I know the code is in flux with the pending 4.0.0 release and some of this may change when the project upgrades to the [email protected].
The text was updated successfully, but these errors were encountered: