Skip to content

Commit bf42a35

Browse files
Antoine Arlaudgergo-papp
authored andcommitted
fix: add default targetref value consistent with monitor usecase
1 parent bd10de2 commit bf42a35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/response-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ async function buildResponse(
207207
},
208208
...(options &&
209209
options["target-reference"] && {
210-
targetReference: options["target-reference"],
210+
targetReference: options["target-reference"] ?? depGraph.rootPkg.name,
211211
}),
212212
},
213213
...applicationDependenciesScanResults,

0 commit comments

Comments
 (0)