From 9a4986ad86c8f407e50c0ab08fa6895ba60b064b Mon Sep 17 00:00:00 2001 From: Colin-de-Seroux <77831261+Colin-de-Seroux@users.noreply.github.com> Date: Sat, 3 May 2025 19:03:27 +0200 Subject: [PATCH 1/3] :wrench: Add .env example --- .env.example | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000000000..1d48f3d7a7a22 --- /dev/null +++ b/.env.example @@ -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 From 4bb1b04481033255eaa5224203314cd975c4c768 Mon Sep 17 00:00:00 2001 From: Colin-de-Seroux <77831261+Colin-de-Seroux@users.noreply.github.com> Date: Sat, 3 May 2025 19:13:08 +0200 Subject: [PATCH 2/3] :memo: Update README for add the PAT settings --- readme.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/readme.md b/readme.md index 363b008b2f8c2..3b4e72642fc61 100644 --- a/readme.md +++ b/readme.md @@ -758,6 +758,18 @@ 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 + +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. + ## On Vercel ### :film\_projector: [Check Out Step By Step Video Tutorial By @codeSTACKr](https://youtu.be/n6d4KHSKqGk?t=107) From e346f1e4b51068a97f771272024a50950a135102 Mon Sep 17 00:00:00 2001 From: Colin-de-Seroux <77831261+Colin-de-Seroux@users.noreply.github.com> Date: Thu, 8 May 2025 13:28:52 +0200 Subject: [PATCH 3/3] :memo: Add fine-grained PAT documentation --- readme.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 3b4e72642fc61..0a895167cb51d 100644 --- a/readme.md +++ b/readme.md @@ -760,9 +760,11 @@ By default, GitHub does not lay out the cards side by side. To do that, you can ## 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`. + - Click on `Generate new token -> Generate new token (classic)`. - Scopes to selected: - repo - read:user @@ -770,6 +772,27 @@ Steps: 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)