Forum Discussion

Simonb1's avatar
Simonb1
Icon for Microsoft rankMicrosoft
Jun 16, 2026

Github PAT token not found

My agent found a bug in the code, generated the changes and it's now trying to create a new branch and the PR, however gets this errors:

code: xxxxx/.git/git-credentials

Tool call failed: File does not exist: /home/appuser/sreagent/terminalRoot/codeRefs/xxxxx/.git/git-credentials

-----

remote: Invalid username or token. Password authentication is not supported for Git operations. fatal: Authentication failed for 'https://github.com/[xxxxx]
----

The token itself seems to have the right permissions, as giving the agent the PAT in the session is able to proceed correctly.
I'm not sure if it's not using the identity sidecar (if it should) or something is stuck in the old configuration.

Can anyone help?

 

No RepliesBe the first to reply