Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Output Variables #128

Open
pinkfloydx33 opened this issue Jun 30, 2023 · 0 comments
Open

Add Output Variables #128

pinkfloydx33 opened this issue Jun 30, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@pinkfloydx33
Copy link

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.

@pippolino pippolino added the enhancement New feature or request label Feb 26, 2024
@pippolino pippolino self-assigned this Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants