feat: added aibom extension #5882
Merged
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.
Pull Request Submission Checklist
What does this PR do?
Registers a new CLI extention cli-extension-ai-bom. This version of the extension adds a single command
snyk aibomwhich creates an AI Bill Of Materials in CycloneDX format and outputs it to the command line.The codebase for the extension is: https://github.com/snyk/cli-extension-ai-bom . It's currently relatively small & follows the standard structure of a golang CLI extension.
Where should the reviewer start?
The main thing we do to the CLI in this PR is register the extension in
cliv2/cmd/cliv2/main.go.Risk assessment & Feature Flag
This CLI extension adds a new command. It should not impact any other commands. The command requires both a
--experimentalflag and an org_public_id based Feature Flag to be enabled.How should this be manually tested?
Build the CLI,
make build. Run the CLI against any python project with AI assets. e.g.snyk aibom cli/test/fixtures/ai-bom/python-chatbot --experimental.We intend to add e2e tests once the command is in the preview branch. This will likely be part of environment testing (unless you recommend otherwise).
What's the product update that needs to be communicated to CLI users?
Product updates to be included during Snyk Launch 2025
What are the relevant tickets?
https://snyksec.atlassian.net/browse/AIBOM-34