Repository navigation
Description
Problem
Lanes that run PR code start on main via workflow_dispatch. GitHub states such runs keep a write-capable cache token, while runs from outsider triggers get a read-only one. Several of these workflows also grant id-token: write in the job that runs PR code: pr-review-hosted.yml, pr-run-activity-read.yml, work-resolve-issue.yml, pr-refine.yml and pr-merge.yml.
- What an attacker needs: code in a lane PR. The one current path for outside text is the issue lane's
web-access: domains: any. - Impact: poisoned entries in main's build cache. Security researchers (not GitHub) report that with sudo, any step can read the job's secrets from runner memory. setup-runner-isolation already removes sudo where it runs.
Fix
For every job that runs PR code: set cache-mode: read, drop id-token: write, and mint App or OIDC tokens in a separate job.
Exception (owner decision 2026-11-01, Q1 (a)): pr-run-activity-write.yml's run job keeps id-token: write. It mints the lane App token, then checks out the PR head and runs the model in the same job, the residual ADR 0058 accepts: the broker mints once per job, and probe P7 found no OIDC request variables in the model's Bash. Splitting that job is not required to close this issue.
Every other id-token: write in the workflows named above sits in a job that runs no PR code (pr-run-activity-read.yml broker-check, pr-merge.yml merge and enable-auto-merge, which check out main only), or on a caller's uses: of a lane runner, which only caps the callee: pr-run-activity-read.yml's head-code run job grants only contents: read and pull-requests: read. pr-review-hosted.yml grants none. So the write runner's run job is the one exception.
Priority
Low to medium. Deferred by the owner until the lanes run steadily; it must not break the lanes.
Basis: GitHub Security & Cost interview, Q6 (2026-10-18).
Activity
github-actions commentedon Oct 18, 2026
Proposed work class: none
Thanks for the report. Automated triage handed this issue to a maintainer.
Unconfirmed model suggestion: work-class: scoped
Basis: automated intake triage; a maintainer confirms or changes it.
Automated triage. A maintainer reviews it.
kyle-sexton commentedon Oct 25, 2026
Released for re-triage under the owner's 2026-10-24 rule: an issue stops for a person only for an intent or vision question, a security call, a host or attended run, or spend outside prepaid credit. The hold label came off and intake triage runs again now; it re-applies a hold, with a numbered question, when one of those applies.
To hold this issue again, add
needs-human(orstatus: needs-decision) and say why in a comment.melodic-automation-lanes commentedon Oct 25, 2026
The triage verdict left this issue at
status: needs-decision:Size:lineComplexity:lineUncertainty:lineFlags:linekyle-sexton commentedon Oct 26, 2026
Builder: the Automation Lanes session builds this from the owner's machine. The fix edits
.github/workflows, which the lanes App cannot push (patch-rules.json:3); that boundary stays. Its PR closes this issue.needs-humancame off under the owner's 2026-10-26 rule (a person only for an intent or vision change, an implementation finding that alters intent or the primary design, or a HIGH/CRITICAL security issue); none applies.agent-readystays off so the issue lane does not race the build.[-]fix(lanes): read-only cache and no id-token in jobs that run PR code[/-][+]fix(lanes): read-only cache and no id-token in jobs that run PR code (hardening deferred)[/+]kyle-sexton commentedon Oct 31, 2026
Closing as hardening deferred (§10). This issue sets
cache-mode: read, dropsid-token: writeand moves token minting into a separate job in every lane job that runs PR code. It closes no open leak: its own body rates it low to medium and says it was deferred until the lanes run steadily. Under the standing direction, hardening issues wait until open issues and pull requests reach zero. Refile from this issue, with the body as the spec, when that point is reached.kyle-sexton commentedon Oct 31, 2026
Closed as hardening deferred under standing direction §10; the comment above has the evidence. Trigger to refile: open issues = 0 and open PRs = 0.
kyle-sexton commentedon Oct 31, 2026
Reopening. Close audit at origin/main 28b1747: pr-review-hosted and pr-run-activity-read are fixed, but the resolve-issue and fix-docs model jobs still hold id-token write and no job sets a read-only cache. This sits on the token boundary, so the hardening-deferred close did not fit it. Needs a builder.
[-]fix(lanes): read-only cache and no id-token in jobs that run PR code (hardening deferred)[/-][+]fix(lanes): read-only cache and no id-token in jobs that run PR code[/+]kyle-sexton commentedon Nov 1, 2026
Decision recorded.
The fix in the body stands: in every job that runs PR code, a read-only cache, no
id-token: write, and App or OIDC tokens minted in a separate job. This is not own-actor hardening under §10: a job that runs PR code and holdsid-token: writelets that code request an OIDC token for the lanes broker, and the body names outside text (the issue lane'sweb-access: domains: any) as the path to PR code, so it is a token-exposure path. At origin/mainb9ae6bbaed, per the 2026-10-31 reopen comment, pr-review-hosted and pr-run-activity-read are fixed (.github/workflows/pr-run-activity-read.yml:408"The only job in this file that may hold id-token: write")..github/workflows/work-resolve-issue.ymlstill grantsid-token: writeat:263,:346,:414,:456,:484and:849, and its onlycache-mode: readis the pick-slot job at:162, which runs no PR code..github/workflows/pr-refine.ymlgrantsid-token: writeto the fix-docs caller jobs at:170,:254,:319and:358, and.github/workflows/pr-merge.ymlat:835and:2049; the build checks each against the jobs that run PR code. The checklist row C7 (.work/backlog-shaper-course-correction/interview-checklist.md:22, inherited, relayed 2026-10-18) reads "#8294/#8295 hardening deferred until lanes run steadily"; the 2026-10-31 reopen placed this on the token boundary. The fix edits workflow files, which the lanes App cannot push (.github/actions/resolve-config/patch-rules.json:75-76). Agents decided this on evidence under standing direction §1.Acceptance criteria:
cache-mode: read.id-token: write; App or OIDC tokens are minted in a separate job.Route: builder (Automation Lanes).
kyle-sexton commentedon Nov 1, 2026
Done. Closing on the cache half, with the owner's 2026-11-01 Q1 (a) decision applied to the body.
cache-mode: readon the jobs that run PR code.id-token: writeremains only in jobs that run no PR code (pr-run-activity-read.ymlbroker-check, pr-merge.ymlmergeandenable-auto-merge), on callers'uses:of a lane runner (a cap on the callee, not a grant to PR code), and in pr-run-activity-write.yml'srunjob, the ADR 0058 residual the owner chose to keep (Q1 (a)). The read runner's head-coderunjob holdscontents: readandpull-requests: readonly, withcache-mode: read(pr-run-activity-read.yml:547-555).The body's Fix section now names that exception.