Skip to content

docs(readme): document required permissions + concurrency recommendation#8

Merged
caffeinum merged 2 commits into
mainfrom
chore/triage-sanity-pr-feedback
May 19, 2026
Merged

docs(readme): document required permissions + concurrency recommendation#8
caffeinum merged 2 commits into
mainfrom
chore/triage-sanity-pr-feedback

Conversation

@caffeinum
Copy link
Copy Markdown
Contributor

Summary

  • Add a Workflow setup section to the README with two subsections.
  • Required permissions: spell out the minimum GITHUB_TOKEN scopes (contents:read, pull-requests:write, statuses:write) and explicitly call out that issues:write is not needed — PR comments are served by the issue-comments endpoint but token-scope-wise pull-requests:write already covers them. Also notes which scopes can be dropped under skip-comment / skip-status.
  • Concurrency: recommend the standard cancel-in-progress: true pattern and explain how it composes with backend supersession (covers both "cancelled before a run was created" and "cancelled mid-run" — the next workflow's API call marks the older run superseded, which the action already handles as a terminal state).

Motivation

Triggered by external review feedback on a downstream caller workflow (sanity-io/cli#1088) where callers were over-granting issues:write defensively and skipping concurrency for fear of breaking supersession. Both are documentation gaps on our side — no functional changes to the action.

Test plan

  • Render README on GitHub and verify the new section sits cleanly between the recipes and the Inputs table.
  • Sanity-check the YAML snippets parse (copy/paste into a scratch workflow).

🤖 Generated with Claude Code

caffeinum and others added 2 commits May 18, 2026 19:27
Add a Workflow setup section covering minimum GITHUB_TOKEN scopes
(contents:read, pull-requests:write, statuses:write) so callers stop
copying issues:write defensively, and the cancel-in-progress concurrency
pattern with a note on how it composes with backend supersession.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
On deployment_status events github.head_ref is empty and github.ref
falls back to the deployment SHA — the default snippet would give every
commit its own concurrency group and silently break supersession. Add a
callout with the deployment.ref variant.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@caffeinum caffeinum merged commit f77603a into main May 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant