-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sbom: fix inconsistencies in sbom protocol
This irons a few issues discovered in porting the default sbom scanner to go. Since we construct the args for the image based on the Entrypoint + Cmd, we shouldn't error out early if no Cmd is set, but only if neither Entrypoint or Cmd are set. We should also respect the environment variables set in the config, and include those, passing them to the ExecOp as well as the custom-set variables. We should avoid setting BUILDKIT_SCAN_SOURCE_EXTRAS if no extras have been specified, to simplify the scanning protocol. Signed-off-by: Justin Chadwell <me@jedevc.com>
- Loading branch information
Showing
1 changed file
with
26 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters