Skip to content

Commit 00168aa

Browse files
fix: remove invalid 'metadata' permission from workflow
GitHub Actions workflow was failing due to invalid 'metadata: read' permission. Removed the invalid permission - only 'contents: read' is needed for checkout. Organization membership checking uses fine-grained token, not GITHUB_TOKEN. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 93d2f79 commit 00168aa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/issue_comment_claude-code-review.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ jobs:
2424
runs-on: ubuntu-latest
2525
permissions:
2626
contents: read # Allow repository checkout
27-
metadata: read # Allow reading repository metadata
28-
# Note: Organization membership checking uses the actor's permissions
29-
# not the GITHUB_TOKEN, so no additional permissions needed for that API
27+
# Note: Organization membership checking uses fine-grained token
28+
# so no additional GITHUB_TOKEN permissions needed for that API
3029
outputs:
3130
authorized: ${{ steps.membership-check.outputs.is_member }}
3231
steps:

0 commit comments

Comments
 (0)