Skip to content

Uses explicit permissions#128

Merged
merschformann merged 1 commit intodevelopfrom
merschformann/workflow-permissions
Apr 20, 2026
Merged

Uses explicit permissions#128
merschformann merged 1 commit intodevelopfrom
merschformann/workflow-permissions

Conversation

@merschformann
Copy link
Copy Markdown
Member

Description

Addresses security feedback by Github about workflow permissions by setting them explicitly.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses GitHub security feedback by explicitly setting default GITHUB_TOKEN permissions for workflows, aligning them with least-privilege access.

Changes:

  • Set workflow-level permissions: contents: read across CI/lint/benchmark workflows.
  • Set workflow-level permissions: contents: read for the release workflow, while preserving job-level elevated permissions where required.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.github/workflows/release.yml Adds workflow-level contents: read while keeping job-level contents: write for the version bump/release-creation job.
.github/workflows/python-test.yml Adds explicit workflow token permissions (contents: read).
.github/workflows/python-lint.yml Adds explicit workflow token permissions (contents: read).
.github/workflows/markdown-lint.yml Adds explicit workflow token permissions (contents: read).
.github/workflows/json-lint.yml Adds explicit workflow token permissions (contents: read).
.github/workflows/header.yml Adds explicit workflow token permissions (contents: read).
.github/workflows/go-test-lint.yml Adds explicit workflow token permissions (contents: read).
.github/workflows/auto-benchmark.yml Adds explicit workflow token permissions (contents: read).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@merschformann merschformann merged commit ea85ba9 into develop Apr 20, 2026
41 checks passed
@merschformann merschformann deleted the merschformann/workflow-permissions branch April 20, 2026 22:32
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