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
-
visibility
¶ Type: string
-
edit
(value: str, visibility: str = 'all') → bool¶ Calls: Parameters: - variable_name – string
- value – string
- visibility – string
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
-