Skip to content

Commit 2443e9c

Browse files
authored
fix: SBOM always includes current directory (#159)
1 parent 350faad commit 2443e9c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

blint/cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def build_parser():
130130
"--src",
131131
dest="src_dir_image",
132132
action="extend",
133-
default=[os.getcwd()],
133+
default=[],
134134
nargs="+",
135135
help="Source directories, container images or binary files. Defaults to current directory.",
136136
)
@@ -238,6 +238,8 @@ def handle_args():
238238
args = build_args()
239239
if not args.no_banner and args.subcommand_name != "sbom":
240240
print(BLINT_LOGO)
241+
if not args.src_dir_image:
242+
args.src_dir_image = [os.getcwd()]
241243
blint_options = BlintOptions(
242244
deep_mode=args.deep_mode,
243245
exports_prefix=args.exports_prefix,

0 commit comments

Comments
 (0)