Skip to content

Commit 69efb8c

Browse files
authored
Merge pull request #142 from trail-of-forks/tob-indicate-oidc
Add explanation of why the OIDC publishing was chosen to the log output.
2 parents 29930c9 + dfde872 commit 69efb8c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

oidc-exchange.py

+6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
1818
{message}
1919
20+
You're seeing this because the action wasn't given the inputs needed to
21+
perform password-based or token-based authentication. If you intended to
22+
perform one of those authentication methods instead of trusted
23+
publishing, then you should double-check your secret configuration and variable
24+
names.
25+
2026
Read more about trusted publishers at https://docs.pypi.org/trusted-publishers/
2127
"""
2228

twine-upload.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ if [[ "${INPUT_USER}" == "__token__" && -z "${INPUT_PASSWORD}" ]] ; then
4646
echo \
4747
'::notice::Attempting to perform OIDC credential exchange' \
4848
'to retrieve a temporary short-lived API token for authentication' \
49-
"against ${INPUT_REPOSITORY_URL}"
49+
"against ${INPUT_REPOSITORY_URL} due to __token__ username with no" \
50+
'supplied password field'
5051
INPUT_PASSWORD="$(python /app/oidc-exchange.py)"
5152
elif [[ "${INPUT_USER}" == '__token__' ]]; then
5253
echo \

0 commit comments

Comments
 (0)