)]}'
{
  "commit": "0d56fdeeac1eef80aa74cfbeee6a6ab14957abce",
  "tree": "c61ed3ca4bdf9019aa6b5bc160236ee33675fba5",
  "parents": [
    "7fb7236457e388276ee99fce2a921691a41ecb69"
  ],
  "author": {
    "name": "Jackson Gardner",
    "email": "jacksongardner@google.com",
    "time": "Fri Nov 06 21:44:56 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Fri Nov 06 21:44:56 2026 +0000"
  },
  "message": "Replace pull_request_target workflows with pull_request + workflow_run (#195536)\n\nThis resolves https://github.com/flutter/flutter/issues/193185.\n\nGitHub is restricting `pull_request_target`, which runs with secrets and\na write token on events from forks. Each affected workflow is split in\ntwo:\n\n* An unprivileged `pull_request` workflow with a read-only token and no\nsecrets. Cheap gates (label name, base branch, bot author) are job-level\n`if:`s so non-matching events never allocate a runner. When it applies,\nit uploads a small artifact with context about the triggering event (PR\nnumber, and the cp channel).\n\n* A privileged `workflow_run` workflow that runs from the default branch\nwith access to secrets. It downloads the artifact and does the actual\nwork: commenting, labeling, reverting, cherry-picking, deleting\nbranches.\n\nA PR can modify the `pull_request` workflow, so the artifact is\nuntrusted. The privileged side ties the PR number to the triggering\nrun\u0027s head SHA and repo. It then reads all other state from the GitHub\nAPI, including re-checking any gate whose failure would have made the\ntrigger skip. Checks that end in a comment either way are done only on\nthe privileged side.\n\n| Unprivileged (pull_request)     | Privileged (workflow_run) |\n|---------------------------------|---------------------------|\n| revert-trigger.yml              | revert.yml                |\n| cp-trigger.yml                  | easy-cp.yml               |\n| labeler-trigger.yml             | labeler.yml               |\n| delete-bot-branches-trigger.yml | delete-bot-branches.yml   |\n| freeze.yml                      | freeze-comment.yml        |\n| no-main-prs.yaml                | no-main-prs-comment.yaml  |\n\nfreeze.yml and no-main-prs.yaml keep their names because they still\nprovide the PR check. no-main-prs.yaml now gates on `base_ref \u003d\u003d \u0027main\u0027`\nat the job level, so it no longer uses a runner on every PR.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "22bfde7dd10a1a89f2b6a7bf31470242bc95c920",
      "old_mode": 33188,
      "old_path": ".agents/skills/flutter-cherry-pick/scripts/flutter_cp.dart",
      "new_id": "d7af6572203c9c39b92ddc570bed10703f64628c",
      "new_mode": 33188,
      "new_path": ".agents/skills/flutter-cherry-pick/scripts/flutter_cp.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "01722977a37ca0b27c083045e6f199418388b11e",
      "new_mode": 33188,
      "new_path": ".github/workflows/cp-trigger.yml"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "f3cca683ce62f6212077c989b317c1cc76700ad7",
      "new_mode": 33188,
      "new_path": ".github/workflows/delete-bot-branches-trigger.yml"
    },
    {
      "type": "modify",
      "old_id": "d543c6826ced00cb6271292fa174079ae461f946",
      "old_mode": 33188,
      "old_path": ".github/workflows/delete-bot-branches.yml",
      "new_id": "e70db3de85614e3d5c93d588d416ea085796d28d",
      "new_mode": 33188,
      "new_path": ".github/workflows/delete-bot-branches.yml"
    },
    {
      "type": "modify",
      "old_id": "e63a3a462f3e2f98d85fefb7f9ff542993715dda",
      "old_mode": 33188,
      "old_path": ".github/workflows/easy-cp.yml",
      "new_id": "ef082e82c72c0749963daae196c74ccf12287d43",
      "new_mode": 33188,
      "new_path": ".github/workflows/easy-cp.yml"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "aab3c67717639d657172283be16cc3c9c2bf35a4",
      "new_mode": 33188,
      "new_path": ".github/workflows/freeze-comment.yml"
    },
    {
      "type": "modify",
      "old_id": "f69b46b250d111d0b6d0d0c860e2f2c5337aabee",
      "old_mode": 33188,
      "old_path": ".github/workflows/freeze.yml",
      "new_id": "d36f0db53c9ed19fbaf207d616495244ab5d9b37",
      "new_mode": 33188,
      "new_path": ".github/workflows/freeze.yml"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "218de8958becb300031e75ecc33c305a65a8115a",
      "new_mode": 33188,
      "new_path": ".github/workflows/labeler-trigger.yml"
    },
    {
      "type": "modify",
      "old_id": "d60b57f69330f5ac5b3e229cb0d743bfecf4ae15",
      "old_mode": 33188,
      "old_path": ".github/workflows/labeler.yml",
      "new_id": "1e45c52d38e7aeb8572774c79807c4b61d8648d6",
      "new_mode": 33188,
      "new_path": ".github/workflows/labeler.yml"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "c27eb3c5b727427fb11620881862e93de4a5ae94",
      "new_mode": 33188,
      "new_path": ".github/workflows/no-main-prs-comment.yaml"
    },
    {
      "type": "modify",
      "old_id": "424d2b3e37529fff8e94d2652d745af6b58daf86",
      "old_mode": 33188,
      "old_path": ".github/workflows/no-main-prs.yaml",
      "new_id": "38d4cb4339114f2fb8b2306eeebcfeb7cadcdda6",
      "new_mode": 33188,
      "new_path": ".github/workflows/no-main-prs.yaml"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "c7f2c01b1cf01decf295319e0f9236ab74d57007",
      "new_mode": 33188,
      "new_path": ".github/workflows/revert-trigger.yml"
    },
    {
      "type": "modify",
      "old_id": "9442d2b1b9cf6e3c0741cab163784b9ca01201fa",
      "old_mode": 33188,
      "old_path": ".github/workflows/revert.yml",
      "new_id": "cf93e768f654b82d2a16f124102045c9c65e12f2",
      "new_mode": 33188,
      "new_path": ".github/workflows/revert.yml"
    },
    {
      "type": "modify",
      "old_id": "7b81a55ad005745f0d045614c282377da19d5f10",
      "old_mode": 33188,
      "old_path": "docs/contributing/Labeling-PRs.md",
      "new_id": "6474b9f58940df5dc912712ca1fcc0c0d8c51873",
      "new_mode": 33188,
      "new_path": "docs/contributing/Labeling-PRs.md"
    },
    {
      "type": "modify",
      "old_id": "5df33ad638642e0c26dd71e33ac4e35b5b9ee955",
      "old_mode": 33188,
      "old_path": "docs/infra/Ci-Best-Practices.md",
      "new_id": "4308918e03009af87fa3ccd7070330e09967929e",
      "new_mode": 33188,
      "new_path": "docs/infra/Ci-Best-Practices.md"
    },
    {
      "type": "modify",
      "old_id": "926e7377566b2df58579941fc393096568f8bbdd",
      "old_mode": 33188,
      "old_path": "docs/infra/GitHub-Action-Workflows.md",
      "new_id": "383a20db0b789631b496769082acdac1d751e895",
      "new_mode": 33188,
      "new_path": "docs/infra/GitHub-Action-Workflows.md"
    },
    {
      "type": "modify",
      "old_id": "14149a1fdc081cf803b7efe97461404cdb9ee51c",
      "old_mode": 33188,
      "old_path": "docs/releases/Flutter-Cherrypick-Process.md",
      "new_id": "3eb782caae23474ff3840b2530884d93b5710f66",
      "new_mode": 33188,
      "new_path": "docs/releases/Flutter-Cherrypick-Process.md"
    }
  ]
}
