13
13
# The top-level error message that gets rendered.
14
14
# This message wraps one of the other templates/messages defined below.
15
15
_ERROR_SUMMARY_MESSAGE = """
16
- Trusted publisher (OIDC) exchange failure:
16
+ Trusted publishing exchange failure:
17
17
18
18
{message}
19
19
28
28
29
29
# Rendered if OIDC identity token retrieval fails for any reason.
30
30
_TOKEN_RETRIEVAL_FAILED_MESSAGE = """
31
- OIDC token retrieval failed: {identity_error}
31
+ OpenID Connect token retrieval failed: {identity_error}
32
32
33
33
This generally indicates a workflow configuration error, such as insufficient
34
34
permissions. Make sure that your workflow has `id-token: write` configured
@@ -71,7 +71,7 @@ def die(msg: str) -> NoReturn:
71
71
with _GITHUB_STEP_SUMMARY .open ("a" , encoding = "utf-8" ) as io :
72
72
print (_ERROR_SUMMARY_MESSAGE .format (message = msg ), file = io )
73
73
74
- print (f"::error::OIDC exchange failure: { msg } " , file = sys .stderr )
74
+ print (f"::error::trusted publishing exchange failure: { msg } " , file = sys .stderr )
75
75
sys .exit (1 )
76
76
77
77
@@ -94,12 +94,14 @@ def assert_successful_audience_call(resp: requests.Response, domain: str):
94
94
case HTTPStatus .FORBIDDEN :
95
95
# This index supports OIDC, but forbids the client from using
96
96
# it (either because it's disabled, limited to a beta group, etc.)
97
- die (f"audience retrieval failed: repository at { domain } has OIDC disabled" )
97
+ die (
98
+ f"audience retrieval failed: repository at { domain } has trusted publishing disabled"
99
+ )
98
100
case HTTPStatus .NOT_FOUND :
99
101
# This index does not support OIDC.
100
102
die (
101
103
"audience retrieval failed: repository at "
102
- f"{ domain } does not indicate OIDC support" ,
104
+ f"{ domain } does not indicate trusted publishing support" ,
103
105
)
104
106
case other :
105
107
status = HTTPStatus (other )
@@ -124,7 +126,7 @@ def assert_successful_audience_call(resp: requests.Response, domain: str):
124
126
125
127
oidc_audience = audience_resp .json ()["audience" ]
126
128
127
- debug (f"selected OIDC token exchange endpoint: { token_exchange_url } " )
129
+ debug (f"selected trusted publishing exchange endpoint: { token_exchange_url } " )
128
130
129
131
try :
130
132
oidc_token = id .detect_credential (audience = oidc_audience )
0 commit comments