File tree 1 file changed +8
-0
lines changed
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')"
40
40
INPUT_SKIP_EXISTING=" $( get-normalized-input ' skip-existing' ) "
41
41
INPUT_PRINT_HASH=" $( get-normalized-input ' print-hash' ) "
42
42
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
+
43
50
TRUSTED_PUBLISHING_NUDGE=" ::warning title=Upgrade to Trusted Publishing::\
44
51
Trusted Publishers allows publishing packages to PyPI from automated \
45
52
environments like GitHub Actions without needing to use username/password \
69
76
" against ${INPUT_REPOSITORY_URL} "
70
77
71
78
if [[ " ${INPUT_REPOSITORY_URL} " =~ pypi\. org ]]; then
79
+ echo " ${PASSWORD_DEPRECATION_NUDGE} "
72
80
echo " ${TRUSTED_PUBLISHING_NUDGE} "
73
81
fi
74
82
fi
You can’t perform that action at this time.
0 commit comments