Skip to content

Commit ccea193

Browse files
jnasbyupgradeclaude
andcommitted
claude.yml: actions: read -> write for the same cache-permission gap
Same anthropics/claude-code-action cache-write gotcha as the previous commit's claude-code-review.yml fix (Postgres-Extensions/cat_tools PR #47) -- this workflow calls the same action, so its own internal setup hits the same silent "Cache reservation failed" warning without actions: write. `write` still covers the existing "read CI results" need (write implies read here), so this replaces the read with write rather than adding a duplicate key. claude.yml does NOT need the --allowedTools inline-comments fix from the previous commit: it never sets prompt: (it responds to actual @claude mention text, not agent mode), so that specific gotcha doesn't apply here. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 8ab5d61 commit ccea193

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/claude.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,14 @@ jobs:
3131
pull-requests: read
3232
issues: read
3333
id-token: write
34-
actions: read # Required for Claude to read CI results on PRs
34+
# write (not just read) despite the name: `write` includes read access
35+
# to CI results, AND there's no narrower scope for cache-write alone --
36+
# without it, claude-code-action's own internal setup silently fails to
37+
# save its Actions cache ("Cache reservation failed: cache write
38+
# denied: token has no writable scopes"), a warning not a hard
39+
# failure, so the job still completes and looks fine, just
40+
# slower/uncached every run. Don't "tighten" this back down to `read`.
41+
actions: write
3542
steps:
3643
- name: Checkout repository
3744
# Intentionally tracks the major-version tag (not a pinned SHA) so

0 commit comments

Comments
 (0)