All builds are failing with the same error - github Permission denied

Hi,

All our current builds are failing due to a Git issue when appveyor is trying to clone the repo. We are using the 'Visual Studio 2022' build image. We tried re-adding some projects from GitHub as fresh ones and even switching to the 'Previous Visual Studio 2022' image, but the build process continues to fail.

Build started
git clone -q --branch=feature/xxxx git@github.com:ExampleOrg/ExampleProject.git C:\projects\example-project
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Command exited with code 128

Thanks in advance.

Jorge

  1. Hi Jorge,

    I see the last few builds are green. Are you still experiencing that error?

  2. Hello.

    We've restored AppVeyor's access to our GitHub organization by installing it as a GitHub App rather than at the user level, and it appears to be working again.

  3. Good, thanks for the update!

  4. Hi Feodor,

    When attempting to launch a new build for a project that is using a machine hosted on our end (BYOC with a Windows Agent on an Azure VM), the process failed and got stuck indefinitely while trying to clone the repository. I assume that using AppVeyor through the GitHub App does not work in this scenario; or do we need to update the agent?

    To restore access to GitHub, I had to fall back to the traditional method, granting permissions through a user account rather than the GitHub App.

    Regards

  5. Hi Jorge,

    When using GitHub App a private repo is cloned with GitHub App installation token. I guess you probably need to unset credential store which is on by default on Git for Windows: https://github.com/appveyor/build-images/blob/master/scripts/Window...

    Hope that helps.

  6. Feodor Fitsner closed this discussion on 23 Sep, 2026 09:03 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac