dependency-check / azuredevops

Dependency Check Azure DevOps Extension
Apache License 2.0
44 stars 26 forks source link

Add Output Variables #128

Open pinkfloydx33 opened 1 year ago

pinkfloydx33 commented 1 year ago

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/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.