从 2023 年 3 月开始到 2023 年底,GitHub 将逐渐开始要求在 GitHub.com 上贡献代码的所有用户启用一种或多种形式的双因素身份验证 (2FA)。 如果你在符合条件的组中,当选择该组举行注册时,将收到一封通知电子邮件,该电子邮件标记取 45 天的 2FA 注册期的开始,而且你会看到要求你在 GitHub.com 上注册 2FA 的横幅。 如果未收到通知,则表示你不是需要启用 2FA 的组的成员,但我们猛烈建议启用 2FA。
我是在fork了OpenZeppelin/openzeppelin-contracts的项目,之后就被GitHub 要求欺压开启 2FA 双重身份验证了,如下
GitHub users are now required to enable two-factor authentication as an additional security measure. Your activity on GitHub includes you in this requirement. You will need to enable two-factor authentication on your account before December 15, 2023, or be restricted from account actions.