Skip to content

Conversation

@Y-T-G
Copy link
Contributor

@Y-T-G Y-T-G commented Dec 8, 2025

Causes broken state cache

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

Streamlines the stale issue workflow by removing unnecessary contents: read permissions from the GitHub Actions configuration.

📊 Key Changes

  • Removes the contents: read permission from .github/workflows/stale.yml job permissions.
  • Keeps issue and pull request write permissions intact for the stale action to function.

🎯 Purpose & Impact

  • Reduces GitHub Actions token scope, improving repository security.
  • Aligns stale workflow permissions with the principle of least privilege.
  • Minimizes risk without changing the behavior of the stale automation for issues and PRs.

@UltralyticsAssistant UltralyticsAssistant added the devops GitHub Devops or MLops label Dec 8, 2025
@UltralyticsAssistant
Copy link
Member

👋 Hello @Y-T-G, thank you for submitting a ultralytics/yolov5 🚀 PR! This is an automated review comment; a Ultralytics engineer will be by shortly to provide additional feedback.

To ensure a seamless integration of your work, please review the following checklist:

  • Define a Purpose: Clearly explain the purpose of your fix or feature in your PR description, and link to any relevant issues. Ensure your commit messages are clear, concise, and adhere to the project's conventions.
  • Synchronize with Source: Confirm your PR is synchronized with the ultralytics/yolov5 main branch. If it's behind, update it by clicking the 'Update branch' button or by running git pull and git merge main locally.
  • Ensure CI Checks Pass: Verify all Ultralytics Continuous Integration (CI) checks are passing. If any checks fail, please address the issues.
  • Update Documentation: Update the relevant documentation for any new or modified features.
  • Add Tests: If applicable, include or update tests to cover your changes, and confirm that all tests are passing.
  • Sign the CLA: Please ensure you have signed our Contributor License Agreement if this is your first Ultralytics PR by writing "I have read the CLA Document and I sign the CLA" in a new message.
  • Minimize Changes: Limit your changes to the minimum necessary for your bug fix or feature addition. "It is not daily increase but daily decrease, hack away the unessential. The closer to the source, the less wastage there is." — Bruce Lee

For more guidance, please refer to our Contributing Guide. Don't hesitate to leave a comment if you have any questions. Thank you for contributing to Ultralytics! 🚀✨

Copy link
Member

@UltralyticsAssistant UltralyticsAssistant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 PR Review

Made with ❤️ by Ultralytics Actions

No issues found—changes look good and continue to respect least-privilege guidance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops GitHub Devops or MLops

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants