Please note I am new to Katalon and able to Clone GitHub Repository but when I push changes to repository, I am getting an error -
Can’t connect to any repository: (https://github.com/XXXXX/KatalonTestRepo.git: not authorized)
Please note I am new to Katalon and able to Clone GitHub Repository but when I push changes to repository, I am getting an error -
Can’t connect to any repository: (https://github.com/XXXXX/KatalonTestRepo.git: not authorized)
Hi there, and thanks for posting in the Katalon community! ![]()
To help you faster, please review our guide on Git here:
Double-checking the steps and configurations might resolve the issue.
If the doc doesn’t help, feel free to provide more details, and a community member will assist you soon. Thanks for being a part of our community!
Best,
Elly Tran
Go to: GitHub → Settings → Developer Settings → Personal Access Tokens → Tokens (classic)
Click “Generate new token” (classic)
Give it a name (e.g., Katalon-Push)
Set expiration (recommended: 30-90 days for security)
Select scopes:
repo (this is critical for push access)
workflow (if using GitHub Actions)
Click “Generate token” → COPY THE TOKEN NOW (you won’t see it again!)
Windows: Open Credential Manager → Windows Credentials → Update the "git:https://github.com" entry with:
Username: Your GitHub username
Password: Paste the new PAT (not your account password!)
macOS: Run in terminal:
bash
git credential-osxkeychain erase host=github.com protocol=https
Then try git push again—you’ll be prompted to re-enter credentials (use PAT as password).
All OS: Katalon Studio uses your system’s Git credentials, so updating them here fixes Katalon.
In Katalon Studio:
Go to Team → Remote → Configure Remote Repositories
Ensure the URL is:
https://<YOUR-USERNAME>@github.com/XXXXX/KatalonTestRepo.git
(Not https://github.com/... alone—your username must be in the URL)
Do NOT use your GitHub account password—GitHub blocks this.
PAT MUST have repo scope—without it, you’ll get “not authorized”.
Redact tokens in screenshots—never share your actual PAT (you did well hiding the repo name with XXXXX!).
If you have 2FA enabled on GitHub (recommended), PATs are mandatory.
Try pushing via Git CLI first (outside Katalon) to isolate the issue:
bash
git push https://github.com/XXXXX/KatalonTestRepo.git # When prompted for password, paste your PAT
If CLI works → The issue is Katalon-specific (recheck remote config).
If CLI fails → Your credentials/PAT are incorrect (recreate the PAT and update system credentials).
Generate an SSH key and add it to GitHub.
Change your remote URL in Katalon to:
git@github.com:XXXXX/KatalonTestRepo.git
(Uses SSH instead of HTTPS—no tokens needed!)
Hi @dbakhru,
Welcome to our community. Please help provide any error logs, screenshot and steps to reproduce so that we can better support. Otherwise, you can read about workaround for this similar error here: https://katalon-inc.my.site.com/support/article/Can-not-connect-to-the-Git-repository or this KShare: [KShare] How to connect to Git Repository? to connect with Git. Hope this can help!