Skip to content

Commit df888c3

Browse files
authored
Fallback on 'cdx' or 'bom' JSON files for Java BOM (#1127)
* Fallback on 'cdx' or 'bom' JSON files for Java BOM Signed-off-by: nekhtan <[email protected]> * Look for bom files in target folder only Signed-off-by: nekhtan <[email protected]> --------- Signed-off-by: nekhtan <[email protected]>
1 parent 150704d commit df888c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ export async function createJavaBom(path, options) {
12811281
bomJsonFiles = getAllFiles(path, "**/target/*.json", options);
12821282
// Check if the bom json files got created in a directory other than target
12831283
if (!bomJsonFiles.length) {
1284-
bomJsonFiles = getAllFiles(path, "**/bom*.json", options);
1284+
bomJsonFiles = getAllFiles(path, "target/**/*{cdx,bom}*.json", options);
12851285
}
12861286
const bomGenerated = bomJsonFiles.length;
12871287
if (!bomGenerated || result.status !== 0 || result.error) {

0 commit comments

Comments
 (0)