Skip to content

Commit 99b2f74

Browse files
wwwillchenclaude
andauthored
fix: allow non-write users to trigger closed issue comment handler (#2578)
## Summary - The `claude-code-action` requires write permissions on the triggering actor by default, but the closed issue comment workflow is designed to respond to **any** user commenting on a closed issue - Added `allowed_non_write_users: '*'` to bypass this check — safe because the workflow's permissions are tightly scoped (`issues: write`, `contents: read`) and Claude is restricted to only `gh issue reopen` and `gh issue comment` ## Test plan - Comment on a closed issue from a non-collaborator account and verify the workflow runs successfully instead of failing with "Actor does not have write permissions" #skip-bugbot 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2578" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1"> <img src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1" alt="Open with Devin"> </picture> </a> <!-- devin-review-badge-end --> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Allow non-write users to trigger the closed-issue comment workflow by setting allowed_non_write_users: "*". This removes the write-permission block so any comment on a closed issue runs the workflow, while staying safe via scoped permissions and restricted tools (only gh issue reopen/comment). <sup>Written for commit 211887f. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a07fe7c commit 99b2f74

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/closed-issue-comment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
2626
# See: https://github.com/anthropics/claude-code-action/blob/v1/docs/security.md
2727
github_token: ${{ secrets.GITHUB_TOKEN }} # bypass OIDC
28+
allowed_non_write_users: "*"
2829
claude_args: |
2930
--model sonnet --allowedTools "Bash(gh issue reopen:*), Bash(gh issue comment:*)"
3031
prompt: |

0 commit comments

Comments
 (0)