Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Can't push to organization repo #2770

Open
ms609 opened this issue Jun 9, 2022 · 3 comments
Open

Can't push to organization repo #2770

ms609 opened this issue Jun 9, 2022 · 3 comments

Comments

@ms609
Copy link

ms609 commented Jun 9, 2022

Description

When I try to push to a public organizational repo, I see a 403 permission denied error:

image

I can push to personal repositories (on my ms609 account) from within Atom, and can push to the organizational repo using GitHub Desktop.

Reproduces how often:

Reproduces all the time on this machine – though I think I recall it working as expected on a different machine (same OS / Atom version)

Versions

Windows 10.

Atom    : 1.60.0
Electron: 9.4.4
Chrome  : 83.0.4103.122
Node    : 12.14.1
apm  2.6.2
npm  6.14.13
node 12.14.1 x64
atom 1.60.0
python 3.9.7
git
visual studio

Additional Information

@DeeDeeG
Copy link
Contributor

DeeDeeG commented Jun 13, 2022

Maybe the token that gets generated for the GitHub package lacks write permission to orgs?

You can try replacing the token with a manually-generated Personal Access Token (https://github.com/settings/tokens) as discussed here: #2686 And make sure the token has org:write permission, in addition to whatever other permissions you may need.

That might work? (If not, maybe the GitHub user account you authenticated with lacks write permission to that org/repo? Or some miscellaneous other issue...)

@ms609
Copy link
Author

ms609 commented Jun 13, 2022

Thanks for the suggestion; I've regenerated a token with the write:org, but still encounter the issue. I've also confirmed that the user account has write permission to the org/repo.

I've also updated the Windows Credentials per the suggestion at #2686 (comment) .

@eror123r
Copy link

Talvez o token gerado para o pacote do GitHub não tenha permissão de gravação para organizações?

Você pode tentar substituir o token por um Token de Acesso Pessoal gerado manualmente ( https://github.com/settings/tokens ) conforme discutido aqui: #2686 E certifique-se de que o token tenha org:writepermissão, além de quaisquer outras permissões que você possa precisar .

Isso pode funcionar? (Se não, talvez a conta de usuário do GitHub com a qual você autenticou não tenha permissão de gravação para esse org/repo? Ou algum outro problema...)

Como, saber Fazer resposta, Cotacao ..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants