Skip to content

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Oct 2, 2025

Summary

Added the missing actions: write permission to the .github/workflows/close-stale.yml workflow file that uses actions/stale@v10.

Changes

The actions/stale action requires the actions: write permission because it deletes its old cache before saving a new one. This permission was missing from the workflow's permissions block.

The permission has been added in the correct order within the permissions block:

  • After contents: read (inherited from workflow-level)
  • Before issues: write
  • Before pull-requests: write

The permission includes a trailing comment that matches the style of other permissions in the file:

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

Related Issue

Fixes the issue by ensuring the stale action has the necessary permissions to function correctly and manage its cache.

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 #56

💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

@Copilot Copilot AI changed the title [WIP] Add missing actions/stale permission Add missing actions: write permission to close-stale workflow Oct 2, 2025
@Copilot Copilot AI requested a review from trask October 2, 2025 05:16
Copilot finished work on behalf of trask October 2, 2025 05:16
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