Skip to content

Add missing actions: write permission to stale workflow#24

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-6d5290d3-5361-436f-9ee8-e25a2df4c438
Draft

Add missing actions: write permission to stale workflow#24
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-6d5290d3-5361-436f-9ee8-e25a2df4c438

Conversation

Copilot AI commented Oct 2, 2025

Copy link
Copy Markdown

Summary

This PR adds the missing actions: write permission to the stale job in the issue-management-stale-action.yml workflow.

Changes

Added actions: write permission to the stale job's permissions block with the trailing comment: # because actions/stale deletes its old cache before saving new one

The permission is placed in the correct order within the permissions block:

  • After contents: read
  • Before issues: write and pull-requests: write

Why this change is needed

The actions/stale action requires the actions: write permission to delete its old cache before saving a new one. Without this permission, the action may not function optimally.

Related

This change follows the same pattern and style used in other workflows in this repository, maintaining consistency with trailing comments on permissions.

Original prompt

This section details on the original issue you should resolve

<issue_title>Add missing actions/stale permission</issue_title>
<issue_description>Check if any workflow jobs are using actions/stale.

If so, make sure that the permissions block for that job contains

actions: write

If any of the other permissions lines have trailing comments, then add a trailing comment for this one too:

actions: write # because actions/stale deletes its old cache before saving new one

Place this new permission in a specific order within the permissions, directly before both:

issues: write
pull-requests: write

(which implicitly means after contents: read)</issue_description>

Comments on the Issue (you are @copilot in this section)

Fixes #23

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: trask <218610+trask@users.noreply.github.com>
Copilot AI changed the title [WIP] Add missing actions/stale permission Add missing actions: write permission to stale workflow Oct 2, 2025
Copilot AI requested a review from trask October 2, 2025 16:15
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.

Add missing actions/stale permission

2 participants