Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Avoid using content from NetRC when using GitHub App API #1008
Conversation
When using the default authentication handler and not overwriting the auth parameter, the netrc file will be read and will overwrite an existing value that was provided using the headers parameter. As the value in the NetRC is wrong a 401 will happen. Using a custom auth handler will ensure the expected token is beeing used.
|
Starting third-party-check jobs. |
|
Build failed (third-party-check pipeline) integration testing on
Warning: |
When using the default authentication handler and not overwriting the auth parameter, the netrc file will be read and will overwrite an existing value that was provided using the headers parameter. As the value in the NetRC is wrong a 401 will happen. Using a custom auth handler will ensure the expected token is beeing used.
Before opening a new issue, please search for a previously filed
issue to ensure you're not creating a duplicate.
Note Bug reports without the following will receive requests for these
details to be provided.
Version Information
Please provide:
The version of Python you're using 3.8.5
The version of pip you used to install github3.py 20.2.4
The version of github3.py, requests, uritemplate, and dateutil installed 1.3.0
Minimum Reproducible Example
Exception information
Login does not work. When using the debugger you can see the authentication header used by requests. It's the value from NetRC.