Skip to content

[P1] Add permissions: contents: read to sync workflow #3

@nbrieussel

Description

@nbrieussel

Problem

The safe-settings-sync workflow has no permissions: block. GitHub grants the org default (potentially read/write on all scopes) even though the workflow only uses App credentials and never touches GITHUB_TOKEN for sync.

Fix

jobs:
  sync:
    permissions:
      contents: read  # needed for the two checkout steps only

This drops all other tokens (issues, pull-requests, id-token…) to none.

Audit report — section 2b

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions