Skip to content

Commit b6de59c

Browse files
committed
feat(sbom): add flag --no-build
1 parent f09b113 commit b6de59c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/murphy/internal/scan/sbomscan.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ func SbomScan() *cobra.Command {
5050
}
5151
cmd.Flags().StringVar(&out, "out", "", "output file path")
5252
cmd.Flags().String("type", "", "")
53+
cmd.Flags().BoolVar(&noBuild, "no-build", false, "skip project building")
5354
_ = cmd.Flags().MarkHidden("type")
5455
return cmd
5556
}
@@ -58,6 +59,7 @@ func processDir(ctx context.Context, dir string) ([]byte, error) {
5859
var e error
5960
var task = model.ScanTask{
6061
ProjectPath: dir,
62+
IsNoBuild: noBuild,
6163
}
6264
ctx = model.WithScanTask(ctx, &task)
6365
e = inspector.ManagedInspect(ctx)

0 commit comments

Comments
 (0)