Cannot list codespaces using github CLI

I’ve been trying to list my codespace using the command gh codespace list and it keep sending me 403 error saying “Must have admin rights to Repository.” but I can access it on the browser. I’ve even tried adding a new ssh key just for the github CLI but even that didn’t worked.

any ideas what might be wrong. the repository for codespace is private tho but I don’t think that should be an issue as gh repo list list the repository, dunno tho

1 Like