Skip to content

ci: add explicit permissions to GitHub Actions workflows (CodeQL alerts #26-#50) - #5

Draft
kerrrang9214-tech with Copilot wants to merge 2 commits into
masterfrom
copilot/fix-code-scanning-alerts-another-one
Draft

ci: add explicit permissions to GitHub Actions workflows (CodeQL alerts #26-#50)#5
kerrrang9214-tech with Copilot wants to merge 2 commits into
masterfrom
copilot/fix-code-scanning-alerts-another-one

Conversation

Copilot AI commented Aug 26, 2026

Copy link
Copy Markdown

Workflows lacking explicit permissions blocks inherit repository-level defaults, which may be read-write — violating least-privilege. This adds permissions: contents: read to all affected workflows to satisfy CodeQL rule actions/missing-workflow-permissions.

Make sure to read the contributing guidelines before submitting a PR

Changes

  • build.yml — top-level permissions: contents: read
  • release.yml — top-level permissions: contents: read; the release job already carries job-level contents: write which takes precedence
  • server.yml — top-level permissions: contents: read
  • server-metal.yml — top-level permissions: contents: read
  • server-webui.yml — top-level permissions: contents: read
  • update-ops-docs.yml — job-level permissions: contents: read
  • winget.yml — job-level permissions: contents: read

Addresses CodeQL alerts ggml-org#26ggml-org#50 (actions/missing-workflow-permissions).

Copilot AI lite review requested due to automatic review settings August 26, 2026 00:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

…L alerts ggml-org#26-ggml-org#50

Co-authored-by: kerrrang9214-tech <242015866+kerrrang9214-tech@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 26, 2026 00:35
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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants