Skip to content

Commit 48c5bfd

Browse files
committed
docs: restore full PAT permissions in What You Need for setup compatibility
1 parent 488a2be commit 48c5bfd

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ Have these two things ready before running setup:
1616

1717
1. **GitHub personal access token (PAT)**, either type works:
1818

19-
- **Fine-grained PAT** (recommended): `All repositories` access with `Contents: Read & Write`.
19+
- **Fine-grained PAT** (recommended): `All repositories` access with permissions:
20+
`Actions`, `Administration`, `Contents`, `Pages`, `Secrets`, `Workflows`
21+
(all Read & Write).
2022
([Create one](https://github.com/settings/personal-access-tokens/new))
21-
- **Classic PAT**: scope `repo`.
22-
([Create one](https://github.com/settings/tokens/new?scopes=repo))
23+
- **Classic PAT**: scopes `repo` and `workflow`.
24+
([Create one](https://github.com/settings/tokens/new?scopes=repo,workflow))
2325
Use this if you hit 403 errors with fine-grained tokens (e.g. org policy restrictions).
2426

25-
> **Using `npx github-weekly-reporter setup`?** The setup command creates a repository, sets secrets, adds workflow files, and enables Pages on your behalf, so it needs more permissions. See [PAT permissions for setup](#pat-permissions) below.
27+
> After setup, you can tighten the PAT to the minimum the Action actually needs. See [PAT Permissions](#pat-permissions).
2628
2729
2. **LLM API key** from any supported provider:
2830

0 commit comments

Comments
 (0)