Skip to content

Commit

Permalink
Fix auditMode
Browse files Browse the repository at this point in the history
  • Loading branch information
underrobyn committed Jan 2, 2024
1 parent 166a90f commit 2d247b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/task/common/failTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ export default async function failTask() {

// If in audit mode then we will succeed with issues, else we fail the task to halt the pipeline.

const taskResult = auditMode ? tl.TaskResult.Failed : tl.TaskResult.SucceededWithIssues;

return tl.setResult(taskResult, 'Dependabot alerts caused pipeline failure.');
const taskResult = auditMode ? tl.TaskResult.SucceededWithIssues : tl.TaskResult.Failed;
tl.setResult(taskResult, 'Dependabot alerts caused pipeline failure.');
return;
}

// If there are no issues the pipeline may continue
Expand Down

0 comments on commit 2d247b6

Please sign in to comment.