PUT
/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}Add a repository to an organization secret
Adds a repository to an organization secret's selected repository list. Use this operation when the secret's visibility is set to selected; the authenticated user must have collaborator access to the repository. OAuth tokens and personal access tokens (classic) need the admin:org scope, plus the repo scope for private repositories.
orgstringrequired
The organization name. The name is not case sensitive.
secret_namestringrequired
The name of the organization secret.
repository_idintegerrequired
The unique numeric identifier of the repository to add.
204Returns no content after the repository is added to the selected list for the organization secret.
409Returned when the secret's repository access visibility is not set to `selected`.
Error handling
A 409 is returned when the secret's repository visibility is not set to selected. The org path parameter must identify the organization, secret_name the secret, and repository_id the repository; the authenticated user needs collaborator access, and OAuth tokens or personal access tokens (classic) need admin:org plus repo for private repositories.