Skip to content

Branch creation GitHub Workflow fails if workflows have been modified since the branch point #184832

Closed

Description

@eyebrowsoffire

The workflow at .github/workflows/cut-release-branch.yml uses the default GitHub token provided to the GitHub workflow. GitHub disallows using this token to modify workflow files themselves (which prevents some privilege escalation attacks). This basically means that if there is a change to any of the workflow files between the branch cut point and the tip of master when the workflow is invoked, the workflow will fail like so:

 ! [remote rejected]   flutter-3.44-candidate.0 -> flutter-3.44-candidate.0 (refusing to allow a GitHub App to create or update workflow `.github/workflows/freeze.yml` without `workflows` permission)

A way to fix this would be to use the FLUTTERACTIONSBOT_CP_TOKEN secret instead of the default workflow GitHub token, but I'd have to verify that this token actually has branch creation permissions.

Activity

  1. added
    P2Important issues not at the top of the work list
    triaged-infraTriaged by Infrastructure team
    on Apr 13, 2026
  2. eyebrowsoffire commented on Apr 17, 2026

    @eyebrowsoffire
    ContributorAuthor

    Fixed with #184833

  3. github-actions commented on May 1, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  4. locked as resolved and limited conversation to collaborators on May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P2Important issues not at the top of the work listinfra: releaseRelease-related requests and toolingteam-infraOwned by Infrastructure teamtriaged-infraTriaged by Infrastructure team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions