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

Method get_secrets

github/Environment.py:186–200  ·  view source on GitHub ↗

Gets all repository secrets. :calls: `GET /repos/{owner}/{repo}/environments/{environment_name}/secrets `_

(self)

Source from the content-addressed store, hash-verified

184 )
185
186 def get_secrets(self) -> PaginatedList[Secret]:
187 """
188 Gets all repository secrets.
189
190 :calls: `GET /repos/{owner}/{repo}/environments/{environment_name}/secrets </repos/{owner}/{repo}/environments/{environment_name}/secrets>`_
191
192 """
193 return PaginatedList(
194 github.Secret.Secret,
195 self._requester,
196 f"{self.url}/secrets",
197 None,
198 attributesTransformer=PaginatedList.override_attributes({"secrets_url": f"{self.url}/secrets"}),
199 list_item="secrets",
200 )
201
202 def get_secret(self, secret_name: str) -> Secret:
203 """

Callers

nothing calls this directly

Calls 2

PaginatedListClass · 0.90
override_attributesMethod · 0.80

Tested by

no test coverage detected