github icon indicating copy to clipboard operation
github copied to clipboard

Can't push to organization repo

Open ms609 opened this issue 2 years ago • 3 comments

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

ms609 avatar Jun 09 '22 08:06 ms609

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: https://github.com/atom/github/issues/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...)

DeeDeeG avatar Jun 13 '22 04:06 DeeDeeG

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 https://github.com/atom/github/issues/2686#issuecomment-845677733 .

ms609 avatar Jun 13 '22 07:06 ms609

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 ..

eror123r avatar Jun 25 '22 13:06 eror123r