Document required secrets in action READMEs

- cloudflare-pages-preview/README.md: add dedicated Required secrets section
  listing the CF API token (with minimum permission scope) and account ID,
  which inputs they map to, and a note that github-token needs no extra secret
- CLAUDE.md: make Required secrets a mandatory README section for new actions
This commit is contained in:
Den Delimarsky 2026-03-10 16:44:08 +00:00
commit 456bb1d1f6
No known key found for this signature in database

View file

@ -116,10 +116,12 @@ Each action (or group) must have a `README.md` covering:
1. **What it does** — one paragraph per action
2. **Prerequisites** — external resources that must exist (CF project, etc.)
3. **Caller requirements** — `permissions:`, fork-PR guards, concurrency,
required secrets
4. **Usage** — a minimal but complete caller workflow example
5. **Inputs/outputs** — tables with name, required, default, description
3. **Required secrets** — dedicated section listing every secret the caller
must configure: what it is, minimum permission scope, and which action
input it maps to. If no secrets are needed, state that explicitly.
4. **Caller requirements** — `permissions:`, fork-PR guards, concurrency
5. **Usage** — a minimal but complete caller workflow example
6. **Inputs/outputs** — tables with name, required, default, description
## Registering the action