Skip to content

Commit

Permalink
feat: set target-reference in the monitor request UNIFY-124
Browse files Browse the repository at this point in the history
  • Loading branch information
adrobuta committed May 29, 2024
1 parent c87151f commit 34a9beb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/ecosystems/monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export async function generateMonitorDependenciesRequest(
// WARNING! This mutates the payload. The project name logic should be handled in the plugin.
scanResult.name =
options['project-name'] || config.PROJECT_NAME || scanResult.name;
scanResult.targetReference = options['target-reference'];
// WARNING! This mutates the payload. Policy logic should be in the plugin.
const policy = await findAndLoadPolicyForScanResult(scanResult, options);
if (policy !== undefined) {
Expand Down

0 comments on commit 34a9beb

Please sign in to comment.