GitHub

Generate a GitHub personal access token

Create a fine-grained token so GitHub Actions can call the APIs needed for deployments. If your org requires classic tokens, follow the classic note below instead.

Fine-grained token steps

  1. Open GitHub → Settings → Developer settings → Personal access tokens → Fine-grained tokens.
  2. Select Generate new token and scope it to this repository.
  3. Under Repository permissions, grant at least Contents: Read and Actions: Write.
  4. If you plan to create repositories from the OpenAI Workbench, also enable Administration: Read and write so GitHub accepts repository creation requests.
  5. Name the token (for example 3dvr-portal-ci), set an expiration, and generate it.
  6. Copy the token and store it as a repository secret such as GH_PAT if you need more than the default GITHUB_TOKEN provides.

Classic token note

If your organization requires classic tokens, generate one under Personal access tokens (classic) with the repo and workflow scopes. Store it in the same GH_PAT secret.

Troubleshooting “Resource not accessible by personal access token”

GitHub shows this when the token cannot reach the repository. Fix it with the checklist below:

Once updated, retry the API call or publish step — the error should clear when scopes and org access match the repository.

Use it in OpenAI Workbench

Jump to the OpenAI Workbench to paste your token into the GitHub publishing card. That panel saves the token locally while commits and previews sync through Gun for your team.

⬅ Back to guides Next: Vercel token & IDs OpenAI Workbench