Add explicit permissions and remove decorator comments from workflows#197
Merged
swissspidy merged 6 commits intomainfrom Jan 20, 2026
Merged
Conversation
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update GitHub Actions to follow best practices
Add explicit permissions and remove decorator comments from workflows
Jan 20, 2026
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
szepeviktor
reviewed
Jan 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.