diff --git a/.github/workflows/claude-assistant.yml b/.github/workflows/claude-assistant.yml index 39b1fbc..b1052a3 100644 --- a/.github/workflows/claude-assistant.yml +++ b/.github/workflows/claude-assistant.yml @@ -13,6 +13,11 @@ name: Claude Code Assistant # (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude') && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)) || # (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude') && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.review.author_association)) || # (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')) && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.issue.author_association)) +# permissions: +# contents: read +# issues: read +# pull-requests: read +# id-token: write # required by claude-code-action for internal authentication # uses: smartwatermelon/github-workflows/.github/workflows/claude-assistant.yml@v1 # secrets: # claude_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} @@ -31,7 +36,6 @@ jobs: contents: read pull-requests: read issues: read - actions: read # Required for Claude to read CI results on PRs steps: - name: Checkout repository uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 832c3e5..beb034e 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -17,6 +17,11 @@ jobs: (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude') && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)) || (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude') && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.review.author_association)) || (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')) && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.issue.author_association)) + permissions: + contents: read + issues: read + pull-requests: read + id-token: write # required by claude-code-action for internal authentication uses: smartwatermelon/github-workflows/.github/workflows/claude-assistant.yml@v1 secrets: claude_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}