diff --git a/components/runner-policy/policy.json b/components/runner-policy/policy.json index 40095c78..402937ea 100644 --- a/components/runner-policy/policy.json +++ b/components/runner-policy/policy.json @@ -948,6 +948,27 @@ "CLAUDE_CODE_OAUTH_TOKEN": "${{ secrets.REVIEWS_CLAUDE_CODE_OAUTH_TOKEN }}" } }, + "melodic-software/ci-workflows/.github/workflows/pr-review-cli.yml@e7f935fc799fc9c78f1dc52646e8bbd54823502a": { + "routing": "hosted-only", + "fixedRunsOn": ["ubuntu-24.04"], + "allowedInputs": [ + "lane", + "publish", + "role", + "model-args", + "allowed-bot-sender-ids", + "allowed-author-ids", + "docs-only-paths", + "incremental-review", + "cli-version", + "hold-label", + "hold-paths" + ], + "allowedSecrets": { + "CLAUDE_API_KEY": "${{ secrets.REVIEWS_CLAUDE_API_KEY }}", + "CLAUDE_CODE_OAUTH_TOKEN": "${{ secrets.REVIEWS_CLAUDE_CODE_OAUTH_TOKEN }}" + } + }, "melodic-software/ci-workflows/.github/workflows/intake-label-needs-triage.yml@ab83b01273026ab5c23c6f3b40e946d97a863fa2": { "routing": "runner-input", "runnerInput": "runner", diff --git a/components/runner-policy/runner-policy.test.mjs b/components/runner-policy/runner-policy.test.mjs index 313a757e..ea28b58a 100644 --- a/components/runner-policy/runner-policy.test.mjs +++ b/components/runner-policy/runner-policy.test.mjs @@ -9975,6 +9975,18 @@ test("the pr-review-cli contract at the v0.65.1 tag copies its v0.65.0 entry for assert.equal(Object.keys(contracts).filter((k) => k.endsWith(`@${sha}`)).length, 1); }); +// v0.65.2 changes only pr-review-cli.yml's internals: each job reports its +// job-token api budget, and the hold step skips a cost re-hold the owner +// already decided (ci-workflows#875). Its inputs, secrets and runner are +// unchanged, so the contract copies forward. +test("the pr-review-cli contract at the v0.65.2 tag copies its v0.65.1 entry forward verbatim", () => { + const contracts = BASE_POLICY.approvedReusableWorkflowContracts; + const key = (sha) => `melodic-software/ci-workflows/.github/workflows/pr-review-cli.yml@${sha}`; + const sha = "e7f935fc799fc9c78f1dc52646e8bbd54823502a"; + assert.deepEqual(contracts[key(sha)], contracts[key("b49ac366bb3426039363a6927c41512e44533808")]); + assert.equal(Object.keys(contracts).filter((k) => k.endsWith(`@${sha}`)).length, 1); +}); + // Convergence as a property, never as a hardcoded SHA. The daily // claude-lanes-repin lane rewrites these components on every ci-workflows // release, and a test naming one revision would go red by construction on