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

Method get_repository_advisory

github/Repository.py:2809–2818  ·  view source on GitHub ↗

:calls: `GET /repos/{owner}/{repo}/security-advisories/{ghsa_id} `_ :param ghsa: string :rtype: :class:`github.RepositoryAdvisory.RepositoryAdvisory`

(self, ghsa: str)

Source from the content-addressed store, hash-verified

2807 )
2808
2809 def get_repository_advisory(self, ghsa: str) -> github.RepositoryAdvisory.RepositoryAdvisory:
2810 """
2811 :calls: `GET /repos/{owner}/{repo}/security-advisories/{ghsa_id} <https://docs.github.com/en/rest/security-advisories/repository-advisories>`_
2812 :param ghsa: string
2813 :rtype: :class:`github.RepositoryAdvisory.RepositoryAdvisory`
2814 """
2815 assert isinstance(ghsa, str), ghsa
2816 ghsa = urllib.parse.quote(ghsa)
2817 headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/security-advisories/{ghsa}")
2818 return github.RepositoryAdvisory.RepositoryAdvisory(self._requester, headers, data)
2819
2820 def update_file(
2821 self,

Callers 2

setUpMethod · 0.80

Calls 1

requestJsonAndCheckMethod · 0.80

Tested by

no test coverage detected