)]}'
{
  "commit": "957e6b5fdddb3e86a4d107d6bf23f6d76aee0d53",
  "tree": "ff586eab1ed897daa0a04eeabed0089299b34ec6",
  "parents": [
    "7c6537ba13a69c9838153404cd19156044e95283"
  ],
  "author": {
    "name": "Tobias Fuchs",
    "email": "fuchs@roofline.ai",
    "time": "Thu Nov 12 15:28:08 2026 +0100"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Nov 12 14:28:08 2026 +0000"
  },
  "message": "[CI] Restrict workflow token permissions to read-only (#25207)\n\nWorkflows declare no `permissions:` block and `clang_tidy.yml` grants\n`contents: write` at the top level. Explicitly set permissions,\nrestrict/default to read-only.\n\n### Changes\n\n- Add a top-level `permissions: contents: read` to every workflow\n- `clang_tidy.yml`: reduce the top-level block to `contents: read`.\ncpp-linter runs with `thread-comments: false` and only reads the PR\ndiff, so it never writes.\n- Checkouts that use `WRITE_ACCESS_TOKEN` now set `persist-credentials:\nfalse`, so the PAT is no longer written to `.git/config` while `pip\ninstall` and `curl | sh` run in the same job. The two steps that relied\non the persisted credential, the candidate tag push in\n`schedule_candidate_release.yml` and `mkdocs gh-deploy` in\n`publish_website.yml`, pass the token explicitly instead. The other\npushes already went through `ad-m/github-push-action` with an explicit\ntoken.\n\n### Verification\n\n- `zizmor`: `excessive-permissions` findings 65 → 0\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\nSigned-off-by: Tobias Fuchs \u003cfuchs@roofline.ai\u003e\nCo-authored-by: Claude Fable 5.1 \u003cnoreply@anthropic.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c4138e550b3abc046f1d132d53810c122114ba92",
      "old_mode": 33188,
      "old_path": ".github/workflows/build_package.yml",
      "new_id": "2f753e15eb5ca0b574cb01da4fbd0718eaecb06b",
      "new_mode": 33188,
      "new_path": ".github/workflows/build_package.yml"
    },
    {
      "type": "modify",
      "old_id": "1dc5c19f420cb2caa273ff630ea581390efdb97e",
      "old_mode": 33188,
      "old_path": ".github/workflows/ci.yml",
      "new_id": "12828da06baaa521c5c552769da703127c322ba4",
      "new_mode": 33188,
      "new_path": ".github/workflows/ci.yml"
    },
    {
      "type": "modify",
      "old_id": "f36210e5700bddcc41702ce0f0181452850636bb",
      "old_mode": 33188,
      "old_path": ".github/workflows/ci_linux_arm64_clang.yml",
      "new_id": "f33dbf659e7ffa8745eb28bac74bff34bdad69ca",
      "new_mode": 33188,
      "new_path": ".github/workflows/ci_linux_arm64_clang.yml"
    },
    {
      "type": "modify",
      "old_id": "4b3af82f26b470ddb766617f64025926e64af1fd",
      "old_mode": 33188,
      "old_path": ".github/workflows/ci_linux_x64_bazel.yml",
      "new_id": "8a4a1514638b61975518009f3a0ecb52c5af9d9d",
      "new_mode": 33188,
      "new_path": ".github/workflows/ci_linux_x64_bazel.yml"
    },
    {
      "type": "modify",
      "old_id": "4d459361159d479f64e9af92f1e477d26a2eaa66",
      "old_mode": 33188,
      "old_path": ".github/workflows/ci_linux_x64_clang.yml",
      "new_id": "0e95248a7df4de384c65a7c9e6382151d14168f8",
      "new_mode": 33188,
      "new_path": ".github/workflows/ci_linux_x64_clang.yml"
    },
    {
      "type": "modify",
      "old_id": "079b3a3231c5d499c0c70155e2a1e07f957f1818",
      "old_mode": 33188,
      "old_path": ".github/workflows/ci_linux_x64_clang_asan.yml",
      "new_id": "3b8024fa725738c04d2ef07de207a833af718242",
      "new_mode": 33188,
      "new_path": ".github/workflows/ci_linux_x64_clang_asan.yml"
    },
    {
      "type": "modify",
      "old_id": "4a1c74cf14b8c105a2018185717963d82a348687",
      "old_mode": 33188,
      "old_path": ".github/workflows/ci_linux_x64_clang_byollvm.yml",
      "new_id": "4e6d3d9b94a8fce4f288255941026fc8f92587d8",
      "new_mode": 33188,
      "new_path": ".github/workflows/ci_linux_x64_clang_byollvm.yml"
    },
    {
      "type": "modify",
      "old_id": "845d94d48a905c40e7bc96dd852a95bc04a3e121",
      "old_mode": 33188,
      "old_path": ".github/workflows/ci_linux_x64_clang_debug.yml",
      "new_id": "f9b27eef49846cf3b1b232da81f4d9cf7aed7f1a",
      "new_mode": 33188,
      "new_path": ".github/workflows/ci_linux_x64_clang_debug.yml"
    },
    {
      "type": "modify",
      "old_id": "a97b3e1282f9bb16ce6fd898541d0b48b3fea031",
      "old_mode": 33188,
      "old_path": ".github/workflows/ci_linux_x64_clang_dynamic_plugins.yml",
      "new_id": "265759cdd3ec9bfa239ab3b29a50f0f4263a826a",
      "new_mode": 33188,
      "new_path": ".github/workflows/ci_linux_x64_clang_dynamic_plugins.yml"
    },
    {
      "type": "modify",
      "old_id": "fdd9ef836204b7f34ea84622f85f8f11ba5b391a",
      "old_mode": 33188,
      "old_path": ".github/workflows/ci_linux_x64_clang_tsan.yml",
      "new_id": "79c4a893862e7cec3053c66c6a0bfcde1c3d0082",
      "new_mode": 33188,
      "new_path": ".github/workflows/ci_linux_x64_clang_tsan.yml"
    },
    {
      "type": "modify",
      "old_id": "618231af6523630fec382f8a293e424c69a1b346",
      "old_mode": 33188,
      "old_path": ".github/workflows/ci_linux_x64_clang_ubsan.yml",
      "new_id": "99b4d8e38ec9f774f07b44444fd92ae2614b416e",
      "new_mode": 33188,
      "new_path": ".github/workflows/ci_linux_x64_clang_ubsan.yml"
    },
    {
      "type": "modify",
      "old_id": "8c38db5cfa72ef702e7d1731aee59b5316ab1662",
      "old_mode": 33188,
      "old_path": ".github/workflows/ci_linux_x64_gcc.yml",
      "new_id": "69bb5308d6ab56ebed34c61d9549b1db0cf15205",
      "new_mode": 33188,
      "new_path": ".github/workflows/ci_linux_x64_gcc.yml"
    },
    {
      "type": "modify",
      "old_id": "5ac4e0cf7c7f8d587dd2a2627cccbc7525f8c4b8",
      "old_mode": 33188,
      "old_path": ".github/workflows/ci_macos_arm64_clang.yml",
      "new_id": "116d35cbcaa9ca9346f7c489e2c659cc30a27c63",
      "new_mode": 33188,
      "new_path": ".github/workflows/ci_macos_arm64_clang.yml"
    },
    {
      "type": "modify",
      "old_id": "e564fcad790e1c2c7e966ce47e62f15c45a71a69",
      "old_mode": 33188,
      "old_path": ".github/workflows/ci_windows_x64_msvc.yml",
      "new_id": "a9acb7b6da659a1a138fcc4937c264644b10118f",
      "new_mode": 33188,
      "new_path": ".github/workflows/ci_windows_x64_msvc.yml"
    },
    {
      "type": "modify",
      "old_id": "e3007b659088f4b12f06522fdf49c0a589d62440",
      "old_mode": 33188,
      "old_path": ".github/workflows/clang_tidy.yml",
      "new_id": "1dda3b8478d4ce12304420fc64c3b3e9f90a8cb7",
      "new_mode": 33188,
      "new_path": ".github/workflows/clang_tidy.yml"
    },
    {
      "type": "modify",
      "old_id": "3829624ecf3b00260942ce12c6974fa25023ac68",
      "old_mode": 33188,
      "old_path": ".github/workflows/oneshot_candidate_release.yml",
      "new_id": "175ec5ac0d2e1416b9f48664b9457780ed9dd038",
      "new_mode": 33188,
      "new_path": ".github/workflows/oneshot_candidate_release.yml"
    },
    {
      "type": "modify",
      "old_id": "b1533b458a80a6826b87ad79084de5e4f0746d49",
      "old_mode": 33188,
      "old_path": ".github/workflows/pkgci.yml",
      "new_id": "84b94e0d934e50cb23faf25f2cf4d3b315f4bbf4",
      "new_mode": 33188,
      "new_path": ".github/workflows/pkgci.yml"
    },
    {
      "type": "modify",
      "old_id": "0602ce0e9cbb3020565ac44bb28db98d4ae56049",
      "old_mode": 33188,
      "old_path": ".github/workflows/pkgci_build_packages.yml",
      "new_id": "bb6552bf891b05a5811a38177bc7eb7d875bb08b",
      "new_mode": 33188,
      "new_path": ".github/workflows/pkgci_build_packages.yml"
    },
    {
      "type": "modify",
      "old_id": "1b2ec8fb078c0fd32bb9c670d270dfc6c1067560",
      "old_mode": 33188,
      "old_path": ".github/workflows/pkgci_test_amd_r9700.yml",
      "new_id": "1892427803de9ba1f2afe9ffbd64340c08968cb8",
      "new_mode": 33188,
      "new_path": ".github/workflows/pkgci_test_amd_r9700.yml"
    },
    {
      "type": "modify",
      "old_id": "9de71d8164e76e1dacfc6e6232959d7866b23181",
      "old_mode": 33188,
      "old_path": ".github/workflows/pkgci_test_amd_w7900.yml",
      "new_id": "2cd5f86f13fa579f9c7f13e125634bd49e5040b2",
      "new_mode": 33188,
      "new_path": ".github/workflows/pkgci_test_amd_w7900.yml"
    },
    {
      "type": "modify",
      "old_id": "cb58ffba5f26f94b80ae10c246e6fa0a64e75ac9",
      "old_mode": 33188,
      "old_path": ".github/workflows/pkgci_test_android.yml",
      "new_id": "9639a3cd815c708066ddd2451b770020a36b5cec",
      "new_mode": 33188,
      "new_path": ".github/workflows/pkgci_test_android.yml"
    },
    {
      "type": "modify",
      "old_id": "08e8d5f699554ef2d29d633721f0bccd1e16dbbf",
      "old_mode": 33188,
      "old_path": ".github/workflows/pkgci_test_nvidia_t4.yml",
      "new_id": "e99b31a47fb7d4eb5fe20f28620fccdbf9d95226",
      "new_mode": 33188,
      "new_path": ".github/workflows/pkgci_test_nvidia_t4.yml"
    },
    {
      "type": "modify",
      "old_id": "9b01ad8d5f84453422ec8ff53a65e6ea8ee4340f",
      "old_mode": 33188,
      "old_path": ".github/workflows/pkgci_test_onnx.yml",
      "new_id": "756ac4905d8c51c4899508320f21d26805d87dd7",
      "new_mode": 33188,
      "new_path": ".github/workflows/pkgci_test_onnx.yml"
    },
    {
      "type": "modify",
      "old_id": "4fab7dd5ca053f00d954b3a090ecc33b0c712ae7",
      "old_mode": 33188,
      "old_path": ".github/workflows/pkgci_test_pjrt.yml",
      "new_id": "461b979e989498add5b8d240333b831f79b076e8",
      "new_mode": 33188,
      "new_path": ".github/workflows/pkgci_test_pjrt.yml"
    },
    {
      "type": "modify",
      "old_id": "85c90ea27c905acc29bf78191594760f69f4bc94",
      "old_mode": 33188,
      "old_path": ".github/workflows/pkgci_test_riscv64.yml",
      "new_id": "2391ea23c509d54866fc244ac45257f169aea09f",
      "new_mode": 33188,
      "new_path": ".github/workflows/pkgci_test_riscv64.yml"
    },
    {
      "type": "modify",
      "old_id": "4581281f50d5e4f5db49545493e13ccae34cd1f1",
      "old_mode": 33188,
      "old_path": ".github/workflows/pkgci_test_sharktank.yml",
      "new_id": "e250f65063bfa1fc17f5e802dbc19bdb6e0e2b5a",
      "new_mode": 33188,
      "new_path": ".github/workflows/pkgci_test_sharktank.yml"
    },
    {
      "type": "modify",
      "old_id": "57aafe8d3ee4b7a4d5555cbddbc4e5c1bcc17e91",
      "old_mode": 33188,
      "old_path": ".github/workflows/pkgci_test_tensorflow.yml",
      "new_id": "39693fe3e9f9bb5717aa67aef1d6d4326302ebe6",
      "new_mode": 33188,
      "new_path": ".github/workflows/pkgci_test_tensorflow.yml"
    },
    {
      "type": "modify",
      "old_id": "828559ab9ddc223ee17583b7417faf369eff1b3e",
      "old_mode": 33188,
      "old_path": ".github/workflows/pkgci_test_torch.yml",
      "new_id": "3bce44cba382a3504f19675a91ecafe469204c28",
      "new_mode": 33188,
      "new_path": ".github/workflows/pkgci_test_torch.yml"
    },
    {
      "type": "modify",
      "old_id": "562b08aee1d8984a758026cac7df7ee44ff61c66",
      "old_mode": 33188,
      "old_path": ".github/workflows/pkgci_unit_test.yml",
      "new_id": "a287669eddcd8a59ee939efca6fae68d09f9c28e",
      "new_mode": 33188,
      "new_path": ".github/workflows/pkgci_unit_test.yml"
    },
    {
      "type": "modify",
      "old_id": "b100cb5cbcc80d35d1112fc96945d5fc19e5bbc9",
      "old_mode": 33188,
      "old_path": ".github/workflows/publish_website.yml",
      "new_id": "277c17db2c72cd98e4a3ca6386cf421c640683a7",
      "new_mode": 33188,
      "new_path": ".github/workflows/publish_website.yml"
    },
    {
      "type": "modify",
      "old_id": "5a4e25f819e6ff3cf1e6c8c220ed2adfaf2d7910",
      "old_mode": 33188,
      "old_path": ".github/workflows/schedule_candidate_release.yml",
      "new_id": "7ee7a2d6c0e4b2300db576fff2d4060fc1a6656a",
      "new_mode": 33188,
      "new_path": ".github/workflows/schedule_candidate_release.yml"
    },
    {
      "type": "modify",
      "old_id": "44d3508fbf86aedb36f9e6041e4c43e99e922f91",
      "old_mode": 33188,
      "old_path": ".github/workflows/setup.yml",
      "new_id": "88f3befbf5da319892a0c256c6064050f4eae28f",
      "new_mode": 33188,
      "new_path": ".github/workflows/setup.yml"
    },
    {
      "type": "modify",
      "old_id": "abee0ec1c69b1b7b0a060e354f1645bc170ce61d",
      "old_mode": 33188,
      "old_path": ".github/workflows/validate_and_publish_release.yml",
      "new_id": "666f9429db518e385b8cfae5160be6b6edf2ada2",
      "new_mode": 33188,
      "new_path": ".github/workflows/validate_and_publish_release.yml"
    },
    {
      "type": "modify",
      "old_id": "4242bc39b1f5590b21b0c59dc59be748fec0a329",
      "old_mode": 33261,
      "old_path": "build_tools/scripts/get_latest_green.sh",
      "new_id": "b18f34b87033eb3f3d5f656c931ae95ccbce7343",
      "new_mode": 33261,
      "new_path": "build_tools/scripts/get_latest_green.sh"
    }
  ]
}
