Skip to content

Commit

Permalink
twine-upload: increase detail on console notices
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <[email protected]>

Co-authored-by: Sviatoslav Sydorenko <[email protected]>
  • Loading branch information
woodruffw and webknjaz committed Mar 22, 2023
1 parent f3ce18f commit ae29550
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion twine-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,19 @@ INPUT_PRINT_HASH="$(get-normalized-input 'print-hash')"
if [[ "${INPUT_USER}" == "__token__" && -z "${INPUT_PASSWORD}" ]] ; then
# No password supplied by the user implies that we're in the OIDC flow;
# retrieve the OIDC credential and exchange it for a PyPI API token.
echo "::notice::In OIDC flow"
echo \
'::notice::Attempting to perform OIDC credential exchange ' \
'to retrieve a temporary short-lived API token for authentication ' \
"against ${INPUT_REPOSITORY_URL}"
INPUT_PASSWORD="$(python /app/oidc-exchange.py)"
elif [[ "${INPUT_USER}" == '__token__' ]]; then
echo \
'::notice::Using a user-provided API token for authentication ' \
"against ${INPUT_REPOSITORY_URL}"
else
echo \
'::notice::Using a username + password pair for authentication ' \
"against ${INPUT_REPOSITORY_URL}}"
fi

if [[
Expand Down

0 comments on commit ae29550

Please sign in to comment.