Skip to content

Commit ba27426

Browse files
authored
docs: Fix workflow yaml in README
docs: Fix workflow yaml in README
2 parents 8d7ac4a + 883d544 commit ba27426

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ name: Code Embedder
120120

121121
on: pull_request
122122

123+
permissions:
124+
contents: write
125+
123126
jobs:
124127
code_embedder:
125128
name: "Code embedder"
@@ -134,11 +137,6 @@ jobs:
134137
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
135138

136139
```
137-
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:
138-
- **Read** access to actions, metadata and secrets.
139-
- **Read** and **Write** access to contents (code).
140-
141-
Also you need to add read and write permissions to workflows in your repository. You can find it under `Settings > Action > General > Workflow permissions`.
142140

143141
## 🔬 Under the hood
144142
This action performs the following steps:

0 commit comments

Comments
 (0)