To fix this, remove the deploy key from the repository, and add the key to your personal account instead.
If the key you are using is intended to be a deploy key, check out our guide on deploy keys for more details.
This version of GitHub Enterprise Server will be discontinued on 2026-08-25. Discontinued releases are not supported. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features in GitHub Enterprise Server, see Overview of the upgrade process. For help with the upgrade, GitHub Enterprise Support.
This error means the key you are pushing with is attached to another repository as a deploy key, and does not have access to the repository you are trying to push to.
To fix this, remove the deploy key from the repository, and add the key to your personal account instead.
If the key you are using is intended to be a deploy key, check out our guide on deploy keys for more details.