Skip to content

Set explicit permissions for release publishing workflows #2496

Open

Description

@josecelano

Goal

Declare the minimum required GITHUB_TOKEN permissions for every release-publishing job currently relying on repository defaults, without changing release behavior or credential access.

Background

CodeQL reports seven missing-permission findings in the container and crate publishing workflows. The repository default is currently read-only, so the findings do not demonstrate a present write-token exploit. This is p3 release-supply-chain hardening against a future repository-default change.

Scope

  • Map each affected publishing job to its actual token requirements.
  • Add explicit minimum permissions for alerts 75, 78, 79, 80, 81, 82, and 104.
  • Preserve Cargo registry and Docker Hub publishing behavior and environment-secret boundaries.
  • Confirm the seven CodeQL alerts close after merge.

Acceptance criteria

  • All seven publishing jobs declare explicit minimum permissions.
  • Every granted permission has a documented consumer.
  • Publishing behavior and secret boundaries remain unchanged.
  • The scoped CodeQL alerts close.

Related to #2493.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Continuous IntegrationSecuritytask

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions