Skip to content

Apply least-privilege GITHUB_TOKEN permissions per job #35

Description

@piers-sinclair

Problem

release.yml declares permissions: contents: write at the workflow level, so every job inherits write. Other workflows rely on default token permissions rather than declaring minimal scopes.

Fix

  • Set a top-level permissions: contents: read and grant contents: write only on the job that creates the GitHub Release.
  • Audit each workflow and declare the minimum scopes it needs.

Priority: Low

Metadata

Metadata

Assignees

No one assigned

    Labels

    securitySecurity hardening

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions