If your repository is private, follow these steps to generate a token:

  1. Go to your GitHub account settings.
  2. Navigate to "Developer settings" > "Personal access tokens" > "Fine-grained tokens".
  3. Click "Generate new token".
  4. Set an expiration date (choose the maximum allowed for convenience).
  5. Under "Repository access", select the private repository you want to connect.
  6. In the "Permissions" section, find "Contents" and set it to "Read-only".
  7. Click "Generate token" at the bottom of the page.
  8. Copy the generated token.