You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6bd6951
Browse filesBrowse the repository at this point in the historyBrowse files
fix(review): stop attempting a cache save a comment run cannot make (#86)
GitHub hands a run triggered by issue_comment a read-only cache token. The
save is refused with "cache write denied: token has no writable scopes",
which the cache action reports as "Unable to reserve cache with key ...,
another job may be creating this cache" followed by "Cache save failed".
Nothing is wrong, but every /codeboarding run ended with two warnings that
read like a broken action, and the real reason was buried.
Confirmed by running the same job both ways in this repository: identical
permissions and action version, a pull_request run saves, a comment run is
denied. Reads are unaffected either way, and a comment run restores sync's
shared base entry normally.
So the saves are skipped for that event, and the documentation stops
claiming /codeboarding publishes a shared entry. Two consequences are
written down instead: a repository reviewed only through the command never
builds a chain, and /codeboarding refresh improves the comment it posts
rather than what later runs start from.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ Each review seeds the head analysis from this pull request's own previous run, s
71
71
72
72
Caching is best-effort: a cache miss, an unavailable cache service, or a GitHub Enterprise Server without one falls back to analyzing the merge base directly, exactly as before.
73
73
74
-
Actions cache entries are scoped to the ref that wrote them. Automatic `pull_request` runs therefore reuse each other's analysis and the shared base entry, while a `/codeboarding` command — which runs on the default branch ref — reuses the base entry but not a chain built by automatic runs, so it costs one base-seeded incremental. The action also accepts `pull_request_target`, which runs on the base branch ref and lets both share one chain; that trigger has its own trade-offs (a PR that adds this workflow will not run it until merged, and the fork gate becomes load-bearing), so `pull_request` remains the recommended default.
74
+
Actions cache entries are scoped to the ref that wrote them, and GitHub gives comment-triggered runs a read-only cache token. So automatic `pull_request` runs reuse each other's analysis and build the chain, `sync` publishes the base entry everyone shares, and a `/codeboarding` command reads both but writes neither — it costs one base-seeded incremental, and `/codeboarding refresh` improves the comment it posts rather than what later runs start from. The action also accepts `pull_request_target`, which runs on the base branch ref and lets both share one chain; that trigger has its own trade-offs (a PR that adds this workflow will not run it until merged, and the fork gate becomes load-bearing), so `pull_request` remains the recommended default.
0 commit comments