-
Couldn't load subscription status.
- Fork 24
fix: update stale workflow permissions for reusable workflow compatibility #335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@2bndy5 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.
I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.
...ility Co-authored-by: 2bndy5 <14963867+2bndy5@users.noreply.github.com>
duplicate with #334
I'm getting confused which repo is which. All the related issues and PRs look the same.
Uh oh!
There was an error while loading. Please reload this page.
The stale workflow was failing due to insufficient permissions for the reusable workflow at
cpp-linter/.github/.github/workflows/stale.yml@main.Error from Actions run:
Root Cause:
The calling workflow only granted
issues: writeat the workflow level, but the reusable workflow's job requires additional permissions (contents: readandpull-requests: write) that were not available.Solution:
Following GitHub Actions security best practices with job-level permissions (principle of least privilege):
permissions: {}(empty)contents: readissues: writepull-requests: writeThis ensures the reusable workflow receives all required permissions while maintaining minimal privilege scope.
Before:
After:
Fixes #333.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.