Skip to content

fix(roadmap): the App token can push a workflow file #3519

Closed

Description

@dan-petty

Problem

GitHub refuses a push from the implement job when the branch changes a file under .github/workflows/. The text of the refusal is refusing to allow a GitHub App to create or update workflow. dreamscaper issue 4 has 28 comments that quote this refusal, and in the window 2026-11-03T15:05Z to 2026-11-04T15:05Z its Jobs used 16.0M input tokens. The item stays blocked, because a retry cannot change the refusal.

The cause is the token request. devops-cli-service holds read and write on all repository permissions (the owner read the App settings on 2026-11-04). CONST_GITHUB_APP_TOKEN_PERMISSIONS leaves out workflows, so no token can push a workflow file. ADR 0015 records that choice.

Decision

On 2026-11-04 the owner chose to add workflows: write to every installation token. The owner also considered two other options: a person makes each workflow edit, or a token gets the permission only for a push whose merged plan names a workflow file.

Expected

Each installation token asks for workflows: write and the permissions that it asks for now. A job can push a change to a file under .github/workflows/.

Acceptance criteria

  • CONST_GITHUB_APP_TOKEN_PERMISSIONS gives workflows the level write.
  • A test proves that the body of the token request holds workflows: write.
  • The HTTP 422 message names workflows (write).
  • ADR 0015, k8s/README.md and the spec github-app-identity state the new list and the risk: a workflow on a pushed branch can run with the secrets of the repository before a person reviews it.

Existing tool considered

This item changes one value in a request to the GitHub REST API. It adds no tool.

Dependencies

None.

Activity

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/high
    effort/low
    on Nov 4, 2026
  2. dan-petty commented on Nov 4, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P1-High. The item is blocked and a retry cannot fix it; 16.0M tokens were spent in one day while waiting.
    • Value: High. Unblocks the implement job from pushing workflow file changes that are currently impossible.
    • Effort: Low. Changes one constant value, adds one test, and updates three documents.
    • Related: feat(security): the App's installation tokens carry only the permissions the roadmap jobs use #2473, which asks for a different change. Both items change CONST_GITHUB_APP_TOKEN_PERMISSIONS, but #2473 removed permissions to narrow scope while this candidate adds workflows: write back to unblock a blocked push.
  3. added
    priority/p1-high
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 4, 2026
  4. removed
    status/in-review
    on Nov 4, 2026
  5. devops-cli-service commented on Nov 4, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-04 21:54 UTC

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

    effort/lowpriority/p1-highscope/roadmapsource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions