:calls: `GET /repos/{owner}/{repo}/security-advisories/{ghsa_id} `_ :param ghsa: string :rtype: :class:`github.RepositoryAdvisory.RepositoryAdvisory`
(self, ghsa: str)
| 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, |
no test coverage detected