File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,13 @@ INPUT_VERIFY_METADATA="$(get-normalized-input 'verify-metadata')"
4040INPUT_SKIP_EXISTING=" $( get-normalized-input ' skip-existing' ) "
4141INPUT_PRINT_HASH=" $( get-normalized-input ' print-hash' ) "
4242
43+ PASSWORD_DEPRECATION_NUDGE=" ::warning title=Password-based uploads deprecated::\
44+ Starting in 2024, PyPI will require all users to enable Two-Factor \
45+ Authentication. This will consequently require all users to switch \
46+ to either API tokens or Trusted Publishers (preferred) for package \
47+ uploads. Read more: \
48+ https://blog.pypi.org/posts/2023-05-25-securing-pypi-with-2fa/"
49+
4350TRUSTED_PUBLISHING_NUDGE=" ::warning title=Upgrade to Trusted Publishing::\
4451Trusted Publishers allows publishing packages to PyPI from automated \
4552environments like GitHub Actions without needing to use username/password \
6976 " against ${INPUT_REPOSITORY_URL} "
7077
7178 if [[ " ${INPUT_REPOSITORY_URL} " =~ pypi\. org ]]; then
79+ echo " ${PASSWORD_DEPRECATION_NUDGE} "
7280 echo " ${TRUSTED_PUBLISHING_NUDGE} "
7381 fi
7482fi
You can’t perform that action at this time.
0 commit comments