Skip to content

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Oct 2, 2025

Summary

This PR confirms that no changes are needed to address the issue "Add missing actions/stale permission" because no workflows in this repository currently use actions/stale.

Investigation Results

After a comprehensive search of the repository:

  1. No current workflows use actions/stale: Searched all .yml and .yaml files in .github/workflows/ and confirmed no references to actions/stale
  2. Historical context: A close-stale-issues.yml workflow was added in PR add automation to close stale issues open-telemetry/opentelemetry-python-contrib#393 (April 2021) that used actions/stale@v3, but this file has since been removed from the repository
  3. Upstream verification: Confirmed via GitHub API that the upstream open-telemetry/opentelemetry-python-contrib repository also doesn't have any actions/stale usage

Conclusion

The issue states: "Check if any workflow jobs are using actions/stale. If so, make sure that the permissions block for that job contains actions: write"

Since the conditional requirement ("if any workflow jobs are using actions/stale") is not met, no changes to workflow permissions are necessary. The task is complete with no modifications needed.

If a stale workflow is added in the future, the permissions block should include:

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

Closes #[issue-number]

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

💬 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 assigned Copilot and trask Oct 2, 2025
@Copilot Copilot AI changed the title [WIP] Add missing actions/stale permission Verify no actions/stale permissions needed (no stale workflows present) Oct 2, 2025
@Copilot Copilot AI requested a review from trask October 2, 2025 15:18
Copilot finished work on behalf of trask October 2, 2025 15:18
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