Skip to content

#3830 Please add documentation for fine-grained Personal Access Tokens #4249

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file is used to set environment variables for the application.
# Copy this file to .env and fill in the values.
# Make sure to keep this file secret and do not share it publicly.

# The port on which the application will run
PORT=9000
# You personal access token for GitHub API access
PAT_1=ghp_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
35 changes: 35 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,41 @@ By default, GitHub does not lay out the cards side by side. To do that, you can

# Deploy on your own

## First step: get your Personal Access Token PAT

### Classic token

Steps:
- Go to [Account -> Settings -> Developer Settings -> Personal access tokens -> Tokens (classic)](https://github.com/settings/tokens).
- Click on `Generate new token -> Generate new token (classic)`.
- Scopes to selected:
- repo
- read:user
- Click on `Generate token` and copy it.

That's all.

### Fine-grained token

> [!WARNING]\
> This limits the number of issues to the number of issues on your repositories only and only takes public commits into account.


Steps:
- Go to [Account -> Settings -> Developer Settings -> Personal access tokens -> Fine-grained tokens](https://github.com/settings/tokens).
- Click on `Generate new token -> Generate new token`.
- Select on expiration date (nothing do less datas)
- Select `All repositories`
- Scopes to selected in `Repository permission`:
- Commit statuses : read-only
- Contents : read-only
- Issues : read-only
- Metadata : read-only
- Pull requests : read-only
- Click on `Generate token` and copy it.

That's all.

## On Vercel

### :film\_projector: [Check Out Step By Step Video Tutorial By @codeSTACKr](https://youtu.be/n6d4KHSKqGk?t=107)
Expand Down