Would it be possible to add Output Variables to the task? For example, the following could be useful:
Score
Maximum detected violation score
Failed
Whether the max score was exceeded, even if warnings were enabled
This would make it easier to add conditional pipeline steps following the task.
Particularly I'm trying to integrate a custom PR Policy and I'd like to know if the check passed/failed based on the score, while considering the task/job itself successful as long as an actual error wasn't thrown.
While I can technically try and leverage succeededOrFailed() and/or Agent.JobStatus=SucceededWithIssues, these statuses could be the result of some previous step and not necessarily the dependency-check step. I'd then have to litter that (or some other) condition on all subsequent steps.
Would it be possible to add Output Variables to the task? For example, the following could be useful:
This would make it easier to add conditional pipeline steps following the task.
Particularly I'm trying to integrate a custom PR Policy and I'd like to know if the check passed/failed based on the score, while considering the task/job itself successful as long as an actual error wasn't thrown.
While I can technically try and leverage
succeededOrFailed()
and/orAgent.JobStatus=SucceededWithIssues
, these statuses could be the result of some previous step and not necessarily the dependency-check step. I'd then have to litter that (or some other) condition on all subsequent steps.