GODRIVER-3599: Add task script to generate CycloneDX SBOM #2119
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added a
task
andetc
bash script to generate a build lifecycleCycloneDX SBOM using a pinned version of the
cyclonedx-gomod
tool. TheSBOM includes the aggregate of modules required by packages in the
mongo-go-driver library, excluding examples, tests and test packages.
The task will run only when go.mod is newer than sbom.cdx.json.
The file is saved as sbom.cdx.json (as opposed to the current sbom.json)
which is the preferred file extension for CycloneDX files. There is not
yet any code to commit the new SBOM to the repo. This is to allow for
evaluation of the new SBOM first without interfering with the current
workflow to upload the static sbom.json file to Kondukto.
TODOs:
in
mongodb-labs/drivers-github-tools
can be called with the updatedSBOM file name.
libmongocrypt SBOM is updated with newer automation
task generate-sbom