Skip to content

Conversation

Copy link

Copilot AI commented Oct 2, 2025

This PR verifies that the workflow using actions/stale has the correct permissions configured as required.

Summary

The .github/workflows/issue-management-stale-action.yml workflow file already contains the correct actions: write permission with the appropriate configuration:

  • Permission added: actions: write with the trailing comment # because actions/stale deletes its old cache before saving new one
  • Correct ordering: The permission is placed after contents: read and before both issues: write and pull-requests: write
  • Coverage: All three uses of actions/stale in the workflow are covered by the same job-level permissions block

The workflow's permissions block (lines 14-18) is properly configured:

permissions:
  contents: read
  actions: write # because actions/stale deletes its old cache before saving new one
  issues: write  # for actions/stale to close stale issues
  pull-requests: write  # for actions/stale to close stale PRs

This configuration allows the stale action to function correctly by giving it the necessary permissions to manage its cache, close stale issues, and close stale pull requests.

Fixes the issue by confirming all requirements are met.

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

💡 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.

Copilot AI changed the title [WIP] Add missing actions/stale permission Verify actions/stale permissions are correctly configured Oct 2, 2025
Copilot AI requested a review from trask October 2, 2025 05:14
Copilot finished work on behalf of trask October 2, 2025 05:14
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