Skip to content
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

docs: Update Token permissions in README.md #30

Merged
merged 4 commits into from
Oct 30, 2024
Merged
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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

```
You need to create a secret with write and repo permissions in the repository settings to pass it as `GITHUB_TOKEN` in the workflow. 🔑 **Fine-grained tokens** are preferred, and you need to set repository permissions to obtain:
- **Read** access to actions variables, metadata and secrets.
- **Read** and **Write** access to actions, contents (code), commit statuses, pull requests, and workflows.
You need to create a secret with write repository permissions. You can create a PAT token and add it as a secret in the repository settings (go to `Settings > Secrets and variables > Actions > New repository secret`). In case of setting up a 🔑 **fine-grained token**, you need to set the following repository permissions:
- **Read** access to actions, metadata and secrets.
- **Read** and **Write** access to contents (code).

Also you need to add read and write permissions to workflows in your repository. You can find it under `Settings > Action > General > Workflow permissions`.

Expand Down
Loading