Skip to content

Commit 1b51976

Browse files
committed
Modify sbom-info.yaml to be available
1 parent 139df79 commit 1b51976

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/fosslight_oss_pkg/_convert.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def convert_report(base_path, output_name, format, need_log_file=True, sheet_nam
6767
output_yaml = os.path.join(output_path, output_name)
6868
else:
6969
output_report = os.path.join(os.path.abspath(output_path), f"FOSSLight-Report_{now}")
70-
output_yaml = os.path.join(os.path.abspath(output_path), f"oss-pkg-info_{now}")
70+
output_yaml = os.path.join(os.path.abspath(output_path), f"fosslight-sbom-info_{now}")
7171
else:
7272
logger.error(f"Format error - {msg}")
7373
sys.exit(1)
@@ -93,7 +93,7 @@ def convert_report(base_path, output_name, format, need_log_file=True, sheet_nam
9393
convert_yml_mode = True
9494
file_option_on = True
9595
else:
96-
logger.error("Not support file name or extension - only support for FOSSLight-Report*.xlsx or oss-pkg-info*.yaml file")
96+
logger.error("Not support file name or extension")
9797
sys.exit(1)
9898

9999
if not convert_yml_mode and not convert_excel_mode:

src/fosslight_prechecker/_constant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"pfm", "otf", "afm", "dfont", "json"]
88
OSS_PKG_INFO_FILES = [r"oss-pkg-info[\s\S]*.yaml", "oss-pkg-info.yml", r"oss-package[\s\S]*.info", "requirement.txt",
99
"requirements.txt", "package.json", "pom.xml", "build.gradle", "podfile.lock", "cartfile.resolved",
10-
"pubspec.yaml", "package.resolved", "go.mod", r"fosslight-sbom-info[\s\S]*.yaml"]
10+
"pubspec.yaml", "package.resolved", "go.mod", r"fosslight-sbom-info[\s\S]*.yaml", r"sbom-info[\s\S]*.yaml"]
1111
HTML_RESULT_EXPAND_LIMIT = 10
1212
HTML_RESULT_PRINT_LIMIT = 100
1313

0 commit comments

Comments
 (0)