user_secrets
Overview
Name | user_secrets |
Type | Resource |
Id | github.codespaces.user_secrets |
Fields
Name | Datatype |
---|---|
repositories | array |
total_count | integer |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list_repositories_for_secret_for_authenticated_user | SELECT | secret_name | List 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_user | DELETE | repository_id, secret_name | Removes 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_user | EXEC | repository_id, secret_name | Adds 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_user | EXEC | secret_name, data__selected_repository_ids | Select 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. |