Skip to content

fix: Add more permissions configuration across pipelines - #31

Merged
mhambre merged 1 commit into
masterfrom
fix/codeql-security-fix
Aug 27, 2026
Merged

fix: Add more permissions configuration across pipelines#31
mhambre merged 1 commit into
masterfrom
fix/codeql-security-fix

Conversation

@mhambre

@mhambre mhambre commented Aug 27, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI lite review requested due to automatic review settings August 27, 2026 04:23

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 changes are limited to explicit least-privilege workflow permissions and align with the jobs’ actual token needs.

Pull request overview

This PR tightens GitHub Actions security by explicitly setting least-privilege GITHUB_TOKEN permissions for the Unit and CI workflows, ensuring they only have repository read access unless a job explicitly needs more.

Changes:

  • Add workflow-level permissions: contents: read to the reusable Unit workflow.
  • Add workflow-level permissions: contents: read to Ubuntu and macOS CI workflows.
  • Grant the changes job in Ubuntu/macOS CI pull-requests: read (in addition to contents: read) to support PR file filtering.
File summaries
File Description
.github/workflows/unit.yml Restricts reusable unit-test workflow token permissions to read-only repository contents.
.github/workflows/ci-ubuntu.yml Sets read-only default permissions and scopes PR read access to the changes job.
.github/workflows/ci-macos.yml Sets read-only default permissions and scopes PR read access to the changes job.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@mhambre
mhambre merged commit 3654150 into master Aug 27, 2026
13 checks passed
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.

2 participants