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
[Schema Inaccuracy] check-run conclusion lacks stale, security-and-analysis lacks secret_scanning_validity_checks, installation-token example uses another repository shape #7247
A few response schemas in the 2022-11-28 description on main (c6721f3) don't match what the API returns or what their own examples show. They're small and separate, so I've put them together; happy to split them if that's easier to track.
The check-run schema's conclusion enum has success, failure, neutral, cancelled, skipped, timed_out and action_required, but not stale. The REST checks guide says "If a check run is in an incomplete state for more than 14 days, then the check run's conclusion becomes stale", and the POST /repos/{owner}/{repo}/check-runs body lists stale with the note "only GitHub can set this". check-suite.conclusion already includes stale.
security-and-analysis has no secret_scanning_validity_checks, though GET /repos/{owner}/{repo} returns it for admins next to the other secret scanning settings.
The installation-token example (#/components/examples/installation-token) gives its repositories network_count, subscribers_count and template_repository, which belong to full-repository. The response schema's repositories items are #/components/schemas/repository, which has none of the three. [Schema Inaccuracy] Example and schema mismatch for #/paths/~1app~1installations~1{installation_id}~1access_tokens/post #5662 reported template_repository and was closed after a check against 5b1274f, but that commit and main still have it in the example and not in the schema.
Expected
check-run.conclusion includes stale.
security-and-analysis has secret_scanning_validity_checks with the same {status: enabled|disabled} shape as its neighbours.
The example matches repository, or the schema says which repository shape the endpoint returns.
Activity