-
-
Notifications
You must be signed in to change notification settings - Fork 313
Fix GitHub Action permissions for Files Changed Label workflow #4305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Co-authored-by: DonnieBLT <[email protected]>
Co-authored-by: DonnieBLT <[email protected]>
…-BLT#4305) * Initial plan for issue * Update GitHub workflow to use custom token Co-authored-by: DonnieBLT <[email protected]> * Improve error handling in GitHub workflow Co-authored-by: DonnieBLT <[email protected]> * Delete .github/README.md --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: DonnieBLT <[email protected]>
Problem
The "Files Changed Label" GitHub Action workflow was failing with a "Resource not accessible by integration" error when attempting to add labels to pull requests. This is due to permission limitations with the default
GITHUB_TOKEN.Solution
This PR improves the workflow to handle permission issues properly:
CUSTOM_GITHUB_TOKENsecret when available..github/README.mdfile.Example error message before:
Example error message after:
How to configure the workflow properly
repopermissionCUSTOM_GITHUB_TOKENFixes #4304.
💡 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.