8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a56da0b + 3063966 commit f9ed8baCopy full SHA for f9ed8ba
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 p 53CC ercent-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