Create a private registry for an organization
Changed onCreates a private registry configuration with an encrypted value for an organization. Encrypt your secret using LibSodium. For more information, see "Encrypting secrets for the REST API." For OIDC-based registries (oidc_azure, oidc_aws, oidc_jfrog, oidc_cloudsmith, or oidc_gcp), the encrypted_value and key_id fields should be omitted. For anonymous registries (anonymous), the username, encrypted_value, and key_id fields must be omitted.
OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.
Request
- Base URL: https://api.github.com
- URL: https://api.github.com/orgs/{org}/private-registries
- Auth: none declared
Path parameters
The organization name. The name is not case sensitive.
Request body
Response
The organization private registry configuration
Example response
{
"name": "MAVEN_REPOSITORY_SECRET",
"username": "monalisa"
}Changes
- warning
added the new
anonymousenum value to theresponse property for the response status - info
added the new
anonymousenum value to the request property
- warning