PATCH /orgs/{org}/private-registries/{secret_name}
Updates 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, or oidc_cloudsmith), the encrypted_value and key_id fields should be omitted.
OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.
Servers
- https://api.github.com
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
secret_name |
String | Yes |
The name of the secret. |
org |
String | Yes |
The organization name. The name is not case sensitive. |
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
username |
String | No |
The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication. |
encrypted_value |
String | No |
The value for your secret, encrypted with LibSodium using the public key retrieved from the Get private registries public key for an organization endpoint. |
url |
String | No |
The URL of the private registry. |
client_id |
String | No |
The client ID of the Azure AD application. Required when |
api_host |
String | No |
The Cloudsmith API host. Optional for |
aws_region |
String | No |
The AWS region. Required when |
selected_repository_ids[] |
Array | No |
An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when |
domain |
String | No |
The CodeArtifact domain. Required when |
role_name |
String | No |
The AWS IAM role name. Required when |
jfrog_oidc_provider_name |
String | No |
The JFrog OIDC provider name. Required when |
key_id |
String | No |
The ID of the key you used to encrypt the secret. |
replaces_base |
Boolean | No |
Whether this private registry should replace the base registry (e.g., npmjs.org for npm, rubygems.org for rubygems). When set to Default value: false |
visibility |
String | No |
Which type of organization repositories have access to the private registry. Valid values:
|
identity_mapping_name |
String | No |
The JFrog identity mapping name. Optional for |
namespace |
String | No |
The Cloudsmith organization namespace. Required when |
auth_type |
String | No |
The authentication type for the private registry. This field cannot be changed after creation. If provided, it must match the existing Valid values:
|
tenant_id |
String | No |
The tenant ID of the Azure AD application. Required when |
domain_owner |
String | No |
The CodeArtifact domain owner (AWS account ID). Required when |
registry_type |
String | No |
The registry type. Valid values:
|
account_id |
String | No |
The AWS account ID. Required when |
audience |
String | No |
The OIDC audience. Optional for |
service_slug |
String | No |
The Cloudsmith service account slug. Required when |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.