OrganizationSecret¶
-
class
github.OrganizationSecret.
OrganizationSecret
¶ This class represents a org level GitHub secret.
The reference can be found here https://docs.github.com/en/rest/actions/secrets
-
property
visibility
¶ - Type
string
-
edit
(value: str, visibility: str = 'all', secret_type: str = 'actions') → bool¶ - Calls
- Parameters
variable_name – string
value – string
visibility – string
secret_type – string options actions or dependabot
- Return type
bool
-
add_repo
(repo: github.Repository.Repository) → bool¶ - Calls
‘PUT {org_url}/actions/secrets/{secret_name} <https://docs.github.com/en/rest/actions/secrets#add-selected-repository-to-an-organization-secret>`_
- Parameters
repo – github.Repository.Repository
- Return type
bool
-
remove_repo
(repo: github.Repository.Repository) → bool¶ - Calls
‘DELETE {org_url}/actions/secrets/{secret_name} <https://docs.github.com/en/rest/actions/secrets#add-selected-repository-to-an-organization-secret>`_
- Parameters
repo – github.Repository.Repository
- Return type
bool
-
property