File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1010
1111_GITHUB_STEP_SUMMARY = Path (os .getenv ("GITHUB_STEP_SUMMARY" ))
1212
13+ # The top-level error message that gets rendered.
14+ # This message wraps one of the other templates/messages defined below.
15+ _ERROR_SUMMARY_MESSAGE = """
16+ Trusted publisher (OIDC) exchange failure:
17+
18+ {message}
19+
20+ Read more about trusted publishers at https://docs.pypi.org/trusted-publishers/
21+ """
22+
1323# Rendered if OIDC identity token retrieval fails for any reason.
1424_TOKEN_RETRIEVAL_FAILED_MESSAGE = """
1525OIDC token retrieval failed: {identity_error}
5363
5464def die (msg : str ) -> NoReturn :
5565 with _GITHUB_STEP_SUMMARY .open ("a" , encoding = "utf-8" ) as io :
56- print (msg , file = io )
66+ print (_ERROR_SUMMARY_MESSAGE . format ( message = msg ) , file = io )
5767
5868 print (f"::error::OIDC exchange failure: { msg } " , file = sys .stderr )
5969 sys .exit (1 )
You can’t perform that action at this time.
0 commit comments