Closed ChrisHolman closed 1 year ago
Hi @ChrisHolman can you elaborate? The task will get the status SucceededWithWarnings and not Fail.
What are you trying to achieve?
Looking to remove the SucceededWithWarnings flag. Although it may sound counter-intuitive, we would rather the task always passed, regardless of what was found, until we've managed to ascertain a baseline.
SucceededWithWarnings is passed.
Hi @ChrisHolman, I tought about it and I am not going to change the behavior. When secrets (either true secrets or false positives) are found there is a call for action. That call for action is either a warning or error. Suppressing both sounds an anti-pattern for me.
If taskFail is set to True, and issues are detected, the task fails.
If taskFail is set to False, and issues are detected, the task presents a warning (!).
Is there a way to remove this warning, so if issues are detected, and the toggle is set to false, the task will Pass?