Skip to content

Commit

Permalink
docs: Fix workflow yaml in README
Browse files Browse the repository at this point in the history
docs: Fix workflow yaml in README
  • Loading branch information
kvankova authored Nov 1, 2024
2 parents 8d7ac4a + 883d544 commit ba27426
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ name: Code Embedder

on: pull_request

permissions:
contents: write

jobs:
code_embedder:
name: "Code embedder"
Expand All @@ -134,11 +137,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

```
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`.

## 🔬 Under the hood
This action performs the following steps:
Expand Down

0 comments on commit ba27426

Please sign in to comment.