GitHub Container Registry · API Governance Rules
GitHub Container Registry API Rules
Spectral linting rules defining API design standards and conventions for GitHub Container Registry.
0 Rules
Spectral Ruleset
x-aid: github-container-registry:rules
x-name: GitHub Container Registry Rules
description: Operational rules and constraints for using GitHub Container Registry and the GitHub Packages API.
rules:
- name: Authentication
description: ghcr.io image push/pull requires a Personal Access Token (classic) or GITHUB_TOKEN with appropriate scopes.
- name: Required Scopes
description: read:packages for pulls, write:packages for pushes, delete:packages for removals.
- name: Personal Access Token Classic Only
description: GitHub Packages currently supports authentication only with personal access tokens (classic) for individual users.
- name: Visibility Inheritance
description: Container package visibility can be public, private, or internal and is independent from the source repository unless linked.
- name: Repository Linking
description: Packages can be associated with a repository to inherit access control and appear in the repository UI.
- name: OCI Distribution Spec
description: Image push/pull operations conform to the OCI Distribution Spec at ghcr.io and Docker Image Manifest V2 Schema 2.
- name: REST API Base
description: All package management endpoints are served from https://api.github.com.
- name: Rate Limits
description: GitHub REST API enforces standard rate limits; container blob requests at ghcr.io have separate limits.
- name: GitHub Actions Integration
description: GITHUB_TOKEN within Actions can publish and consume container packages associated with the workflow's repository.
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for spectral rules
4 MCP tools reach this
find_rulesBrowse and filter every ruleset in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/github-container-registry-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.