Fix workflow to include permissions block with write access for issues and PRs#4275
Merged
jiaren-wu merged 2 commits intoalert-autofix-1from Oct 13, 2025
Merged
Conversation
Contributor
|
@copilot The workflow description mentions it 'opens a pull request' but only has contents: read permission. This configuration will likely cause the workflow to fail when attempting to create pull requests. Consider adding pull-requests: write permission or scope the required permissions at the job level. |
…on workflow Co-authored-by: jiaren-wu <[email protected]>
Contributor
Author
Added |
Copilot
AI
changed the title
[WIP] Fix workflow to include permissions block
Fix workflow to include permissions block with write access for issues and PRs
Oct 13, 2025
jiaren-wu
approved these changes
Oct 13, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thanks for the feedback on #4274. I'm creating this stack PR to address your comment and will keep this PR's description up to date as I make progress.
Original PR: #4274
Changes Made
Added a
permissionsblock to.github/workflows/global-run-first-interaction.yamlwith the appropriate permissions for the workflow to function correctly:actions/first-interactionaction to post comments on issuesactions/first-interactionaction to post comments on pull requestsThe workflow uses the
actions/first-interactionaction to greet first-time contributors with helpful messages on both issues and pull requests, which requires write permissions to post comments.Testing
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.