Here is how to restrict access by personal access tokens in your github organization
- First click on your profile picture in the top-right corner of the header
- Next click on "Organizations" in the dropdown menu
- Click on the "Settings" button next to the organization
- In the left sidebar, click on "Personal access tokens" under the Third-party Access section
- Click on "Settings" submenu under Personal access tokens
- Select either the "Fine-grained tokens" or "Tokens (classic)" tab to enforce this policy based on the token type
- Then under "Fine-grained personal access tokens" or "Restrict personal access tokens (classic) from accessing your organizations", select your access policy
- Finally click on "Save" button to apply the changes







