Add explicit permissions and remove decorator comments from workflows #197
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Aligns GitHub Actions workflows with security best practices by implementing explicit least-privilege permissions and cleaning up non-standard formatting.
Changes
Permissions added to all workflows (9 files):
contents: readfor testing/quality,contents: write+pull-requests: writefor readme regeneration, full triage permissions for issue workflowsRemoved separator comments: Cleaned
#----decorative separators from job definitionsStep outputs: Verified existing implementation already follows best practices (
GITHUB_OUTPUTfor cross-job,GITHUB_ENVfor intra-job state)Example
Modified:
code-quality.yml,testing.yml,regenerate-readme.yml,issue-triage.yml,welcome-new-contributors.yml,sync-workflows.yml, and their reusable counterparts.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.