test: verify built-in token can resolve collaborator permission - #237
test: verify built-in token can resolve collaborator permission#237teeohhem wants to merge 2 commits into
Conversation
Throwaway workflow to confirm the Actions GITHUB_TOKEN can call the collaborator-permission endpoint (and see private-team-derived access) under the external-contributor-alerts permission scope. To be deleted. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Test complete. Confirmed: built-in GITHUB_TOKEN resolves collaborator permission (no 403, no PAT needed); internal check must threshold on push/triage+ since public repos grant everyone implicit read. Closing throwaway. |
Deep Review✅ No critical issues found. This PR adds one throwaway CI workflow ( 🟡 P2 -- recommended
🔵 P3 nitpicks (1)
Reviewers (4): ce-correctness-reviewer, ce-security-reviewer, ce-project-standards-reviewer, ce-maintainability-reviewer. Testing gaps: Verdicts are only logged via |
Throwaway test workflow to verify that the built-in Actions
GITHUB_TOKENcan resolve a user's repository permission — including access granted through a private team — under the exact permission scope thatexternal-contributor-alerts.ymlruns with.This validates the planned fix for the false "external" classification of private org members (see the bug where a private
MEMBERwas flagged external becauseauthor_associationonly reflects public membership). The workflow runs on push and checks two logins:teeohhem— a private ClickHouse member withwriteaccess. Expected verdict: INTERNAL.octocat— no access. Expected verdict: EXTERNAL (control).If the restricted token returns
403, the job fails loudly and we know a PAT/App token is required instead. This branch and file are temporary and will be deleted once the result is confirmed.