Skip to content

Fix Claude workflow permissions and git history access#3

Merged
differentmatt merged 2 commits intoadd-claude-github-actions-1767209015317from
copilot/sub-pr-2
Dec 31, 2025
Merged

Fix Claude workflow permissions and git history access#3
differentmatt merged 2 commits intoadd-claude-github-actions-1767209015317from
copilot/sub-pr-2

Conversation

Copy link

Copilot AI commented Dec 31, 2025

Addresses review feedback from PR #2 to enable Claude workflows to function correctly.

Permission fixes:

  • claude.yml: Added write permissions for contents, pull-requests, and issues (Claude needs these to create branches, commits, and comments)
  • claude-code-review.yml: Added write permissions for pull-requests and issues (required to post review comments)

Git history access:

  • Changed fetch-depth: 1 to fetch-depth: 0 in both workflows to provide full repository history for better context understanding of diffs and changes

Tool configuration fix:

  • Changed Bash(gh pr comment:*) to Bash(gh pr comment *) in claude-code-review.yml to enable write operations (the colon pattern only allows reading comment content, not posting)

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: differentmatt <2965172+differentmatt@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Claude Code GitHub workflow Fix Claude workflow permissions and git history access Dec 31, 2025
Copilot AI requested a review from differentmatt December 31, 2025 19:32
@differentmatt differentmatt marked this pull request as ready for review December 31, 2025 21:25
@differentmatt differentmatt merged commit 82b42c3 into add-claude-github-actions-1767209015317 Dec 31, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants