Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.91 KB

setSelectedReposForOrgSecret.md

File metadata and controls

48 lines (37 loc) · 1.91 KB
name example route scope type
Set selected repositories for an organization secret
octokit.rest.actions.setSelectedReposForOrgSecret({ org, secret_name, selected_repository_ids })
PUT /orgs/{org}/actions/secrets/{secret_name}/repositories
actions
API method

Set selected repositories for an organization secret

Replaces all repositories for 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.

octokit.rest.actions.setSelectedReposForOrgSecret({
  org,
  secret_name,
  selected_repository_ids,
});

Parameters

name required description
orgyes
secret_nameyes

secret_name parameter

selected_repository_idsyes

An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the visibility is set to selected. You can add and remove individual repositories using the Set selected repositories for an organization secret and Remove selected repository from an organization secret endpoints.

See also: GitHub Developer Guide documentation.