Skip to content

fix(security-bundle): the called-workflow fetch carries the job token - #84

Merged
rldyourmnd merged 1 commit into
mainfrom
fix/called-workflow-fetch-carries-the-job-token
Sep 2, 2026
Merged

fix(security-bundle): the called-workflow fetch carries the job token#84
rldyourmnd merged 1 commit into
mainfrom
fix/called-workflow-fetch-carries-the-job-token

Conversation

@rldyourmnd

Copy link
Copy Markdown
Contributor

GitHub throttles anonymous git per source address, and the fleet's runners share four addresses. Under a burst on 2026-09-02 (09:25Z to 09:40Z, again at 10:02Z) the anonymous fetch of this workflow's own implementation answered 401 (could not read Username for 'https://github.com', expected flush after ref listing) and the security gate failed for its own bootstrap in two projects (setup-systems run 33615927721, both attempts). The same fetch with a token went through in the same window. The earlier reading of the failure as a protocol-v2 fault was wrong; the retry loop stays as a belt.

The fetch now sends ${{ github.token }} as basic x-access-token, the way actions/checkout does. The repository is public; the token adds an identity, not access, so no caller input or secret is needed.

https://claude.ai/code/session_0128syXKxAGCfJGRDxUUNQXp

GitHub throttles anonymous git per source address and the fleet's runners
share four addresses. Under a burst on 2026-09-02 (09:25Z-09:40Z, again at
10:02Z) the anonymous fetch of this workflow's own implementation answered
401 -- "could not read Username for 'https://github.com'", "expected flush
after ref listing" -- and a security gate failed for its own bootstrap in
two projects; the same fetch with a token went through. The earlier
reading of that failure as a protocol-v2 fault was wrong. The fetch now
sends the job's token as basic x-access-token, the way actions/checkout
does; the repository is public, the token adds identity, not access. The
retry stays as a belt.

Claude-Session: https://claude.ai/code/session_0128syXKxAGCfJGRDxUUNQXp
@rldyourmnd
rldyourmnd enabled auto-merge September 2, 2026 10:05
@github-actions github-actions Bot added ci and removed ci labels Sep 2, 2026
@rldyourmnd
rldyourmnd merged commit e90a2c7 into main Sep 2, 2026
27 checks passed
@rldyourmnd
rldyourmnd deleted the fix/called-workflow-fetch-carries-the-job-token branch September 2, 2026 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant