Skip to main content

repos_for_secret

Overview

Namerepos_for_secret
TypeResource
Idgithub.actions.repos_for_secret

Fields

NameDatatype
repositoriesarray
total_countinteger

Methods

NameAccessible byRequired ParamsDescription
list_selected_repos_for_org_secretSELECTorg, secret_nameLists all repositories that have been selected when the visibility
for repository access to a secret is set to selected.

You must authenticate using an access token with the admin:org scope to use this endpoint.
If the repository is private, you must use an access token with the repo scope.
GitHub Apps must have the secrets organization permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read secrets.
remove_selected_repo_from_org_secretDELETEorg, repository_id, secret_nameRemoves a repository from 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.
If the repository is private, you must use an access token with the repo scope.
GitHub Apps must have the secrets organization permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read secrets.
add_selected_repo_to_org_secretEXECorg, repository_id, secret_nameAdds 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.
If the repository is private, you must use an access token with the repo scope.
GitHub Apps must have the secrets organization permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read secrets.
set_selected_repos_for_org_secretEXECorg, secret_name, data__selected_repository_idsReplaces 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.
If the repository is private, you must use an access token with the repo scope.
GitHub Apps must have the secrets organization permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read secrets.