We discovered a scenario when git fetch had such stdout/stderr:
git: 'credential-cache' is not a git command. See 'git --help'.\nremote: Invalid username or password.
fatal: Authentication failed for 'https://dummy:<PAT>@github.com/<USER>/<REPO>.git/'
: exit status 128\
Fixes
Check whether the error message contains the PAT, if so, censor it from the message before logging it.
Purpose of the PR
git fetch
had such stdout/stderr:Fixes