Add selected repository to an organization secret

Adds a repository to an organization secret when the visibility for repository access is set to selected. The visibility is set when you Create or update an organization secret. You must authenticate using an access token with the admin:org scope to use this endpoint. GitHub Apps must have the secrets organization permission to use this endpoint.

PUT /orgs/:org/actions/secrets/:secret_name/repositories/:repository_id

Response when repository was added to the selected list

Status: 204 No Content

Response when visibility type is not set to selected

Status: 409 Conflict