GitHub/CLI/Q/Is it possible to scope gh CLI permissions by directory or repo
DOING is it possible to scope the
ghcommand so that the permissions it has in one directory are different than the permissions it has in another directory?logbookImpetus
- CursorAI/Agent can invoke the #gh when instructed to do so in a CursorAI/Project Rule. It would be great if the
ghcli permissions could be locked down to modifying just the assets associated with a certain repo.
- CursorAI/Agent can invoke the #gh when instructed to do so in a CursorAI/Project Rule. It would be great if the
Follow-up #Questions
DOING Is it possible that the GitHub CLI access token could source an EnvVar/.env file in the current repo to obtain a GitHub Personal Access Token that's scoped to the current repository?
logbook- #Theoretical - this could be possible with GitHub/CLI/EnvVar/GH_TOKEN
- we could create a wrapper script that implements behavior akin to Pyenv/.python-version
- #Theoretical - this could be possible with GitHub/CLI/EnvVar/GH_TOKEN
- TODO how might we quickly provision scoped, temporary GitHub Personal Access Tokens?