Add missing actions: write permission to stale workflow #121
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.
Summary
Adds the
actions: writepermission to thestalejob in the issue management workflow file.Details
The
actions/staleaction requires theactions: writepermission because it deletes its old cache before saving a new one. Without this permission, the action may fail or not function optimally.The permission has been added to
.github/workflows/issue-management-stale-action.ymlin the correct order:contents: readissues: writeandpull-requests: writeThe change includes a trailing comment explaining the reason for the permission, consistent with the existing comment style in the workflow file.
Testing
Fixes the issue identified in the original request to ensure the stale action has all necessary permissions to function correctly.
Original prompt
💡 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.