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

Method get_public_key

github/Organization.py:1330–1338  ·  view source on GitHub ↗

:calls: `GET /orgs/{org}/actions/secrets/public-key `_ :calls: `GET /orgs/{org}/dependabot/secrets/public-key `_ :param

(self, secret_type: str = "actions")

Source from the content-addressed store, hash-verified

1328 )
1329
1330 def get_public_key(self, secret_type: str = "actions") -> PublicKey:
1331 """
1332 :calls: `GET /orgs/{org}/actions/secrets/public-key <http://docs.github.com/rest/actions/secrets#get-an-organization-public-key>`_
1333 :calls: `GET /orgs/{org}/dependabot/secrets/public-key <http://docs.github.com/rest/dependabot/secrets#get-an-organization-public-key>`_
1334 :param secret_type: string options actions or dependabot
1335 :rtype: :class:`github.PublicKey.PublicKey`
1336 """
1337 headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/{secret_type}/secrets/public-key")
1338 return github.PublicKey.PublicKey(self._requester, headers, data, completed=True)
1339
1340 def get_copilot(self) -> Copilot:
1341 """

Callers 1

create_secretMethod · 0.95

Calls 1

requestJsonAndCheckMethod · 0.80

Tested by

no test coverage detected