Skip to content

Set explicit permissions for CI workflows #2495

Open

Description

@josecelano

Goal

Declare minimum GITHUB_TOKEN permissions for the twenty validation and CI jobs currently relying on repository defaults, while preserving fork safety, self-hosted-runner isolation, coverage, and label automation.

Background

CodeQL reports twenty missing-permission findings across validation workflows. Current repository and fork pull-request tokens are read-only, so no present write-token exploit was demonstrated. This is p3 CI hardening against a future default change or higher-tier pivot.

Scope

  • Build a permission matrix for all twenty affected jobs.
  • Add explicit minimum workflow- or job-level permissions.
  • Preserve fork, coverage, label, generated-PR, and self-hosted container behavior.
  • Confirm all twenty scoped CodeQL alerts close after merge.

Acceptance criteria

  • All twenty jobs declare explicit minimum permissions.
  • Jobs needing no token permissions receive none, and every non-empty grant has a documented consumer.
  • Fork pull requests cannot access write permissions or protected secrets.
  • Self-hosted runner and cache boundaries do not create an undocumented release pivot.
  • The scoped CodeQL alerts close.

Related to #2493.

Activity

  1. added
    Continuous Integration
    Security
    on Oct 8, 2026
  2. self-assigned this
    on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Continuous IntegrationSecuritytask

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions