3

I am using GitHub Actions. To access the self-hosted runners API needed admin:org scope aceess token I'm creating a personal access token with admin:org scope But with this token we can access all git repos that is avalable in my organazaion. To avaoid misused please help me to create admin token for specific repo with that i can able to use github runners api and all features of github actions.

Access tokens require admin:org scope

admin:org    Full control of orgs and teams, read and write org projects
write:org    Read and write org and team membership, read and write org projects
read:org     Read org and team membership, read org projects
manage_runners:org   Manage org runners and runner groups

enter image description here

samadhan
  • 251
  • 2
  • 8
  • did you find out how to do it? – El Facha Oct 11 '22 at 13:49
  • See [GitHub Token - Restrict Access](https://stackoverflow.com/a/74117912/6309) or [GitHub OAuth2 Token: How to restrict access to read a single private repo](https://stackoverflow.com/a/74117850/6309) – VonC Oct 18 '22 at 22:03

0 Answers0