ci: add explicit permissions to GitHub Actions workflows (CodeQL alerts #26-#50) - #5
Draft
kerrrang9214-tech with Copilot wants to merge 2 commits into
Draft
ci: add explicit permissions to GitHub Actions workflows (CodeQL alerts #26-#50)#5kerrrang9214-tech with Copilot wants to merge 2 commits into
kerrrang9214-tech with Copilot wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
6 tasks
…L alerts ggml-org#26-ggml-org#50 Co-authored-by: kerrrang9214-tech <242015866+kerrrang9214-tech@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix code scanning alerts #26 to #50
ci: add explicit permissions to GitHub Actions workflows (CodeQL alerts #26-#50)
Aug 26, 2026
There was a problem hiding this comment.
🟢 Approval recommended
The permissions changes are minimal, consistent with least-privilege, and preserve any existing job-level write permissions where needed (e.g., release creation).
Review details
- Files reviewed: 7/7 changed files
- Comments generated: 0 new
- Review effort level: Lite
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.
Workflows lacking explicit
permissionsblocks inherit repository-level defaults, which may be read-write — violating least-privilege. This addspermissions: contents: readto all affected workflows to satisfy CodeQL ruleactions/missing-workflow-permissions.Make sure to read the contributing guidelines before submitting a PR
Changes
build.yml— top-levelpermissions: contents: readrelease.yml— top-levelpermissions: contents: read; thereleasejob already carries job-levelcontents: writewhich takes precedenceserver.yml— top-levelpermissions: contents: readserver-metal.yml— top-levelpermissions: contents: readserver-webui.yml— top-levelpermissions: contents: readupdate-ops-docs.yml— job-levelpermissions: contents: readwinget.yml— job-levelpermissions: contents: readAddresses CodeQL alerts ggml-org#26–ggml-org#50 (
actions/missing-workflow-permissions).