Skip to content

[org] ORG_PAT needs Pull requests read/write; document the token's full contract #15

Closed as not planned

Description

@bketelsen

Immediate need

The skills-sync pipeline (ADR-0026, core/.github/workflows/sync-skills.yml) can clone and push with ORG_PAT but PR creation fails in all six target repos:

pull request create failed: GraphQL: Resource not accessible by personal access token (createPullRequest)

Action: add Pull requests: Read and write to the ORG_PAT fine-grained token (Settings → Developer settings → Fine-grained tokens), covering all frostyard repos. Then dispatch sync-skills.yml (or wait for the Monday 05:23 cron) — the sync branches are already pushed everywhere, so the next run only opens the PRs.

Full inventory of ORG_PAT consumers (as of 2026-08-11)

Cross-repo repository_dispatch triggers (need Contents: write on the target repo — snosi/snow):

  • bootc-debian build.yml, chairlift snapshot.yml, firn release.yml, first-setup release.yml, gchlog snapshot.yml, igloo snapshot.yml, incus builds-docker.yml, intuneme release.yml, nbc release.yml, pilothouse release.yml, updex release.yml

Other consumers:

  • first-setup build.yml — actions/checkout with token + softprops/action-gh-release (Contents: write)
  • incus sync-upstream.yml — checkout/push for upstream sync (Contents: write)
  • core sync-skills.yml — clone/push (Contents: write) + PR create/list (Pull requests: read+write ← currently missing)

Required permission set (fine-grained)

  • Repository access: all frostyard repositories
  • Contents: Read and write (dispatch events, pushes, releases)
  • Pull requests: Read and write (skills sync)
  • Metadata: Read (implied)

Follow-ups to resolve with this issue

  • Add the Pull requests permission and re-run sync-skills
  • Record the token's contract (name, permission set, consumers, rotation owner) in a core doc — same spirit as the canonical-secret rule in ADR-0020 — so the next "resource not accessible" failure is a lookup, not an investigation
  • Note the token's expiry date somewhere that alarms before it lapses (fine-grained PATs expire; every dispatch/release/sync in the org fails silently-ish when it does)

Refs: ADR-0013, ADR-0026, ADR-0020

Activity

  1. bketelsen commented on Aug 12, 2026

    @bketelsen
    ContributorAuthor

    Update 2026-08-11: Pull requests: Read and write has been added and the token refreshed — ORG_PAT now expires 2027-08-11 (365-day fine-grained token).

    Remaining from the checklist: record the token contract (consumers, permission set, rotation owner, this expiry date) in a core doc, and put the expiry somewhere that alarms before 2027-08-11 — e.g. a scheduled workflow that starts failing (or filing an issue) 30 days out, since every dispatch/release/skills-sync in the org degrades when it lapses.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions