Repository navigation
Commit aced300
Read classic required checks for a token without admin rights (#186)
A token without admin rights got 404 "Not Found" from
branches/<b>/protection on every protected branch checked, so its
merge rules read as unknown and merging was blocked. The branch read
(branches/<b>) showed such a token protection.enabled and
protection.required_status_checks (enforcement_level, contexts,
checks) on the public repositories checked. Use it on a "Not Found"
answer: enabled false with enforcement off and no checks is no
classic protection; enabled true takes its checks, held to the
protection read's rules. It has no `strict`, so it never gives the
atomic base guard. Every other answer still fails closed. Classic
protection off whose required-checks object is missing or
contradicts itself (enforced, or listing checks) was read as no
classic protection and now fails closed too.
Recorded with gh 2.102.0 from public repositories read without admin
rights: vitejs/vite (ruleset only), cli/cli (classic only) and
sveltejs/svelte (both).
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent c0b8bf0 commit aced300
10 files changed
Lines changed: 338 additions & 33 deletions
File tree
- docs
- designs
- implementation
- github
- test
- fixtures/gh
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
413 | | - | |
| 413 | + | |
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2043 | 2043 | | |
2044 | 2044 | | |
2045 | 2045 | | |
2046 | | - | |
| 2046 | + | |
2047 | 2047 | | |
2048 | 2048 | | |
2049 | 2049 | | |
| |||
0 commit comments