You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to use `gh` inside the VM to inspect issues, pull requests, or repository metadata without granting write access, use a fine-grained personal access token with read-only permissions.
75
75
76
76
1. In GitHub, click on your avatar, go to **Settings** > **Developer settings** > **Personal access tokens** > **Fine-grained tokens**.
77
-
2. Create a token scoped only to the repositories you need, with a short expiration date.
77
+
2. Create a token scoped only to the repositories you need. For CodeCarbon's projects we allow only tokens with an expiration date.
78
78
3. Grant only the minimum repository permissions you need. For read-only `gh` usage on this repository, `Metadata: Read-only` is required, and `Pull requests: Read-only`, `Issues: Read-only`, and `Contents: Read-only` are usually enough.
79
79
4. Add the token to your VM configuration script `scripts/agent-vm.personal.config.sh`, then re-run:
0 commit comments