From 674fb785677e8a853c2c71ad77f688a2c2a3b21e Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Mon, 4 Dec 2023 20:27:16 -0500 Subject: [PATCH] twine-upload: replace notice with debug, simplify msgs --- twine-upload.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/twine-upload.sh b/twine-upload.sh index e4d5149..62de5d5 100755 --- a/twine-upload.sh +++ b/twine-upload.sh @@ -56,15 +56,11 @@ https://docs.pypi.org/trusted-publishers" 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::Attempting to perform trusted publishing exchange' \ - 'to retrieve a temporary short-lived API token for authentication' \ - "against ${INPUT_REPOSITORY_URL} due to __token__ username with no" \ - 'supplied password field' + echo "::debug::Authenticating to ${INPUT_REPOSITORY_URL} via Trusted Publishing" INPUT_PASSWORD="$(python /app/oidc-exchange.py)" elif [[ "${INPUT_USER}" == '__token__' ]]; then echo \ - '::notice::Using a user-provided API token for authentication' \ + '::debug::Using a user-provided API token for authentication' \ "against ${INPUT_REPOSITORY_URL}" if [[ "${INPUT_REPOSITORY_URL}" =~ pypi\.org ]]; then @@ -72,7 +68,7 @@ elif [[ "${INPUT_USER}" == '__token__' ]]; then fi else echo \ - '::notice::Using a username + password pair for authentication' \ + '::debug::Using a username + password pair for authentication' \ "against ${INPUT_REPOSITORY_URL}" if [[ "${INPUT_REPOSITORY_URL}" =~ pypi\.org ]]; then