Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication for orgs that forbid PATs #3363

Open
foca opened this issue Aug 2, 2024 · 0 comments
Open

Authentication for orgs that forbid PATs #3363

foca opened this issue Aug 2, 2024 · 0 comments
Labels

Comments

@foca
Copy link

foca commented Aug 2, 2024

I just found out GitHub organizations can now restrict how you can authenticate against them:

▸ hub clone aikidosec/firewall-node
github.com username: foca
github.com password for foca (never stored):
Error getting repository info: Forbidden (HTTP 403)
`AikidoSec` forbids access via a personal access token with fine-grained permissions. Please use a GitHub App, or an OAuth App.

A workaround (that worked for me, on macOS) was to open Keychain Access, search for the gho_* token generated for git-credential-manager, and copy that into ~/.config/hub.

It would be ideal if Hub used an OAuth app / GitHub App for authentication, though, to avoid having to do this.

@foca foca added the bug label Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant