File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,19 @@ INPUT_PRINT_HASH="$(get-normalized-input 'print-hash')"
43
43
if [[ " ${INPUT_USER} " == " __token__" && -z " ${INPUT_PASSWORD} " ]] ; then
44
44
# No password supplied by the user implies that we're in the OIDC flow;
45
45
# retrieve the OIDC credential and exchange it for a PyPI API token.
46
- echo " ::notice::In OIDC flow"
46
+ echo \
47
+ ' ::notice::Attempting to perform OIDC credential exchange ' \
48
+ ' to retrieve a temporary short-lived API token for authentication ' \
49
+ " against ${INPUT_REPOSITORY_URL} "
47
50
INPUT_PASSWORD=" $( python /app/oidc-exchange.py) "
51
+ elif [[ " ${INPUT_USER} " == ' __token__' ]]; then
52
+ echo \
53
+ ' ::notice::Using a user-provided API token for authentication ' \
54
+ " against ${INPUT_REPOSITORY_URL} "
55
+ else
56
+ echo \
57
+ ' ::notice::Using a username + password pair for authentication ' \
58
+ " against ${INPUT_REPOSITORY_URL} }"
48
59
fi
49
60
50
61
if [[
You can’t perform that action at this time.
0 commit comments