Skip to content

Commit ea29ccc

Browse files
committed
oidc-exchange: avoid splitting the error message
Signed-off-by: William Woodruff <william@trailofbits.com>
1 parent a3a3baf commit ea29ccc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

oidc-exchange.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,7 @@ def die(msg: str) -> NoReturn:
5555
with _GITHUB_STEP_SUMMARY.open("a", encoding="utf-8") as io:
5656
print(msg, file=io)
5757

58-
# NOTE: `msg` is Markdown formatted, so we emit only the header line to
59-
# avoid clogging the console log with a full Markdown formatted document.
60-
header = msg.splitlines()[0]
61-
print(f"::error::OIDC exchange failure: {header}", file=sys.stderr)
58+
print(f"::error::OIDC exchange failure: {msg}", file=sys.stderr)
6259
sys.exit(1)
6360

6461

0 commit comments

Comments
 (0)