Skip to main content

user_secrets

Overview

Nameuser_secrets
TypeResource
Idgithub.codespaces.user_secrets

Fields

NameDatatype
repositoriesarray
total_countinteger

Methods

NameAccessible byRequired ParamsDescription
list_repositories_for_secret_for_authenticated_userSELECTsecret_nameList the repositories that have been granted the ability to use a user's codespace secret.

You must authenticate using an access token with the codespace or codespace:secrets scope to use this endpoint. User must have Codespaces access to use this endpoint.

GitHub Apps must have read access to the codespaces_user_secrets user permission and write access to the codespaces_secrets repository permission on all referenced repositories to use this endpoint.
remove_repository_for_secret_for_authenticated_userDELETErepository_id, secret_nameRemoves a repository from the selected repositories for a user's codespace secret.
You must authenticate using an access token with the codespace or codespace:secrets scope to use this endpoint. User must have Codespaces access to use this endpoint.
GitHub Apps must have write access to the codespaces_user_secrets user permission to use this endpoint.
add_repository_for_secret_for_authenticated_userEXECrepository_id, secret_nameAdds a repository to the selected repositories for a user's codespace secret.
You must authenticate using an access token with the codespace or codespace:secrets scope to use this endpoint. User must have Codespaces access to use this endpoint.
GitHub Apps must have write access to the codespaces_user_secrets user permission and write access to the codespaces_secrets repository permission on the referenced repository to use this endpoint.
set_repositories_for_secret_for_authenticated_userEXECsecret_name, data__selected_repository_idsSelect the repositories that will use a user's codespace secret.

You must authenticate using an access token with the codespace or codespace:secrets scope to use this endpoint. User must have Codespaces access to use this endpoint.

GitHub Apps must have write access to the codespaces_user_secrets user permission and write access to the codespaces_secrets repository permission on all referenced repositories to use this endpoint.