How to generate a personal access token for GitHub
1. Sign in to GitHub: Open your web browser and go to GitHub. Log in to your GitHub account.
2. Access Personal Settings: Click on your profile picture at the top right corner and select "Settings" from the dropdown menu.
3. Go to Developer Settings: In the left sidebar, scroll down and click on "Developer settings."
4. Select Personal Access Tokens: Under "Developer settings," click on "Personal access tokens." and select the Fine-grained tokens and click on the "Generate new token" button.
5. Configure Token Settings:
-
Enter a descriptive name in the "Token name" field (e.g., "Token for Repository Access from the Docs to Markdown Pro add-on").
-
Add a description for your token.
-
In the Repository access section, select "Only select repositories" and check the repositories to which you need to Commit from the Google Docs.
-
In the permissions section, provide the Read and Write permission to the Contents scope as shown in the image.
6. Generate the Token: Once you've selected the desired scopes, scroll down and click on the "Generate token" button.
7. Copy and Save the Token: After generating the token, it will be displayed on the screen. Copy it immediately and store it securely in a password manager or a secure document. You can use this token and configure the GitHub repository in the Docs to Markdown Pro Add on.
8. Store the Token Securely: Treat this token like a password and ensure it's kept in a secure location. Avoid sharing it publicly or storing it in unsecured places.