You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
scoping: agent token repositories sent to access_tokens API as owner/repo (needs runtime verification) #294
Needs runtime verification. Agent (gha_) token repository restrictions are sent to GitHub's installation access_tokens API as owner/repo. GitHub's API expects bare repository names in repositories (or numeric repository_ids).
Evidence
internal/github/app.go:198-200 - repositories passed through unchanged.
internal/proxy/proxy.go:664-667 - values come from the token's owner/repo list.
Source: recon consensus.md A6; confirmed from code by two reviewers; runtime behaviour UNVERIFIED.
Impact
If GitHub rejects or ignores the owner/repo form, either every agent-token request fails at installation-token minting, or (worse) the minted installation token is not narrowed to the intended repositories, so the GitHub-side defence-in-depth is lost.
Proposed fix
Strip the owner (and verify it equals the installation account, rejecting mismatches at token creation), or resolve and send repository_ids. Add a unit test on the request body sent to access_tokens.
Verification
The scope regression rig (/tmp/ghp-rig) carries a scenario for this item. It is marked known_issue until this is fixed; once fixed the rig asserts the expected result and the known_issue marker is removed. The rig probes this once against a real installation to confirm GitHub's behaviour.
Activity
scoperig: agent-token scenarios and the #294 runtime probe (#306)
fix(scoperig): #294 is fixed on 0.27.0; drop known_issue markers (#361)