You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If such URL is used with Remote, if some error related to the access happens, it (in the example below token is foobar) can be leaked via exception message, like the following:
Traceback (most recent call last):
File "start.py", line 119, in <module>
sys.exit(run_main())
...
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git push --set-upstream --force ....
stderr: 'remote: some error.
fatal: unable to access 'https://foobar:x-oauth-basic@github.com/FooBarCorp/some-repo/': The requested URL returned error: 403'
It would be nice to have internal mechanism to prevent such leakage.
Github allows usage of personal access tokens with remote URLs in the format:
or
If such URL is used with
Remote, if some error related to the access happens, it (in the example below token isfoobar) can be leaked via exception message, like the following:It would be nice to have internal mechanism to prevent such leakage.