Commit b14271e
fix(workflow): prevent multiline GITHUB_OUTPUT in red-team benchmark (#4176)
grep -c outputs '0' to stdout even when it exits with code 1 (no
matches). The || echo "0" fallback then appends a second '0', making
AWF_BLOCKED a multiline value. When written to $GITHUB_OUTPUT, the
bare '0' on the second line has no key= prefix, causing:
##[error]Invalid format '0'
Fix: use || true instead — grep -c already outputs '0' on no-match,
so the variable captures the correct value without duplication.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 9b54764 commit b14271e
2 files changed
Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
0 commit comments