push-protected icon indicating copy to clipboard operation
push-protected copied to clipboard

RuntimeError: Response did not return the expected status code from request

Open nazarEnzo opened this issue 2 years ago • 3 comments

RuntimeError: Response did not return the expected status code from request 'https://api.github.com/repos/myorg/myrepo/branches/main'. Status code: 401 (expected: 200). Response: {'message': 'Bad credentials', 'documentation_url': 'https://docs.github.com/rest'}

nazarEnzo avatar Aug 16 '23 08:08 nazarEnzo

I changed nothing but got this error from my github actions wf. Does it have something to do with the newest 2fa rules of github?

nazarEnzo avatar Aug 16 '23 08:08 nazarEnzo

Found the same error.

zhu-xiaowei avatar Aug 21 '23 07:08 zhu-xiaowei

Could you provide a reference to a github actions run where this happened and the workflow file that triggered it?

CasperWA avatar Aug 22 '23 14:08 CasperWA

@CasperWA I tested the same action between checked and unchecked the Do not allow bypassing the above settings, if checked the setting, the action will failed with above error, if unchecked this setting the action will works well.

zhu-xiaowei avatar Aug 23 '23 01:08 zhu-xiaowei