We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a56da0b commit 3063966Copy full SHA for 3063966
oidc-exchange.py
@@ -74,6 +74,10 @@ def die(msg: str) -> NoReturn:
74
with _GITHUB_STEP_SUMMARY.open("a", encoding="utf-8") as io:
75
print(_ERROR_SUMMARY_MESSAGE.format(message=msg), file=io)
76
77
+ # HACK: GitHub Actions' annotations don't work across multiple lines naively;
78
+ # translating `\n` into `%0A` (i.e., HTML percent-encoding) is known to work.
79
+ # See: https://github.com/actions/toolkit/issues/193
80
+ msg = msg.replace("\n", "%0A")
81
print(f"::error::Trusted publishing exchange failure: {msg}", file=sys.stderr)
82
sys.exit(1)
83
0 commit comments