PUT
/orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}Add a selected repository to an organization secret
Adds a repository to an organization secret's selected repository list. Use this operation when the secret's repository visibility is set to selected; OAuth app tokens and personal access tokens (classic) need the admin:org scope.
orgstringrequired
The organization name. The name is not case sensitive.
secret_namestringrequired
The name of the organization secret.
repository_idintegerrequired
The numeric identifier of the repository to add to the selected list.
204Returns no content when the repository is added to the selected list.
409Returned when the organization secret's repository visibility is not set to `selected`.
Error handling
A 409 is returned when the secret's visibility is not selected; configure it as selected when creating or updating the organization secret. The org path parameter names the organization, secret_name identifies the secret, and repository_id identifies the repository; OAuth app tokens and personal access tokens (classic) need the admin:org scope.