Skip to content

task: Scorecard — harden GitHub Actions token permissions (Token-Permissions) #269

@mirzakopic

Description

@mirzakopic

Description

OpenSSF Scorecard reports Token-Permissions: 0/10 on nearly every public repo in the platform-mesh org. Most workflows declare contents: write and/or packages: write at the top level (workflow scope) instead of restricting them to the specific job that needs them. This violates the principle of least privilege for the GITHUB_TOKEN and is a high-impact, low-effort fix.

Fix pattern:

Affected repos

Each box represents one repo to fix. Open the per-repo Scorecard for the exact workflow files and line numbers:
https://api.securityscorecards.dev/projects/github.com/platform-mesh/<repo> → look at the Token-Permissions check details.

Objectives

  • All public repos with workflows score Token-Permissions: 9/10 or 10/10.
  • Top-level permissions: read-all becomes the default for new workflows added to platform-mesh repos (consider documenting in .github repo).

Demo Required

None

Demo Steps

No response


Epic: #278

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions