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 |
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,
});
name | required | description |
---|---|---|
org | yes | |
secret_name | yes |
secret_name parameter |
selected_repository_ids | yes |
An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the |
See also: GitHub Developer Guide documentation.