MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / get_secrets

Method get_secrets

github/Repository.py:2035–2053  ·  view source on GitHub ↗

Gets all repository secrets :param secret_type: string options actions or dependabot.

(
        self,
        secret_type: str = "actions",
    )

Source from the content-addressed store, hash-verified

2033 )
2034
2035 def get_secrets(
2036 self,
2037 secret_type: str = "actions",
2038 ) -> PaginatedList[github.Secret.Secret]:
2039 """
2040 Gets all repository secrets :param secret_type: string options actions or dependabot.
2041 """
2042 assert secret_type in ["actions", "dependabot"], "secret_type should be actions or dependabot"
2043
2044 return PaginatedList(
2045 github.Secret.Secret,
2046 self._requester,
2047 f"{self.url}/{secret_type}/secrets",
2048 None,
2049 attributesTransformer=PaginatedList.override_attributes(
2050 {"secrets_url": f"{self.url}/{secret_type}/secrets"}
2051 ),
2052 list_item="secrets",
2053 )
2054
2055 def get_secret(self, secret_name: str, secret_type: str = "actions") -> github.Secret.Secret:
2056 """

Callers 5

testGetSecretsMethod · 0.45
testGetSecretsFailMethod · 0.45
testRepoSecretsMethod · 0.45

Calls 2

PaginatedListClass · 0.90
override_attributesMethod · 0.80

Tested by

no test coverage detected