Hi,
Using zaproxy/action-api-scan or zaproxy/action-full-scan results in a successful step always, unless setting fail_action: true.
When the action does fail, it fails when the scan result exits with 1, 2 or 3.
I would not expect 2 (WARNings) to result in triggering a workflow failure.
I'd suggest this is a bug, or at least misleading wording of parameters.
(NB also, in the docs of fail_action, I read the two sentences as contradictions - may be worth reviewing).
Suggestion 1:
Expose more outputs in the GH action, sharing the evaluated FAIL/WARNings. eg at least the exit code as above. This will help subsequent decision making in automation.
Suggestion 2:
Extend or replace the existing 'fail_action' with something like
on_fail_behaviour: 'do_fail_action'
on_warn_behaviour: 'do_nothing'
(NB my own aversion to booleans)
Suggestion 3:
Bundle the evaluation of the pass/FAIL/WARN in with the reports.
In my GH workflow I could download the report and parse the Highs, Mediums, etc, but I could not find a way of accessing the important evaluation of pass or fail.
It's really important our workflows fail, fail only when necessary., and scan results are not habitually dismissed.
All help really appreciated!