:calls: `POST /repos/{owner}/{repo}/security-advisories/reports `_ :param summary: string :param description: string :param severity_or_cvss_vector_st
(
self,
summary: str,
description: str,
severity_or_cvss_vector_string: str,
cve_id: str | None = None,
vulnerabilities: Iterable[github.AdvisoryVulnerability.AdvisoryVulnerabilityInput] | None = None,
cwe_ids: Iterable[str] | None = None,
credits: Iterable[github.AdvisoryCredit.AdvisoryCredit] | None = None,
)
| 1900 | ) |
| 1901 | |
| 1902 | def report_security_vulnerability( |
| 1903 | self, |
| 1904 | summary: str, |
| 1905 | description: str, |
| 1906 | severity_or_cvss_vector_string: str, |
| 1907 | cve_id: str | None = None, |
| 1908 | vulnerabilities: Iterable[github.AdvisoryVulnerability.AdvisoryVulnerabilityInput] | None = None, |
| 1909 | cwe_ids: Iterable[str] | None = None, |
| 1910 | credits: Iterable[github.AdvisoryCredit.AdvisoryCredit] | None = None, |
| 1911 | ) -> github.RepositoryAdvisory.RepositoryAdvisory: |
| 1912 | """ |
| 1913 | :calls: `POST /repos/{owner}/{repo}/security-advisories/reports <https://docs.github.com/en/rest/security-advisories/repository-advisories#privately-report-a-security-vulnerability>`_ |
| 1914 | :param summary: string |
| 1915 | :param description: string |
| 1916 | :param severity_or_cvss_vector_string: string |
| 1917 | :param cve_id: string |
| 1918 | :param vulnerabilities: iterable of :class:`github.AdvisoryVulnerability.AdvisoryVulnerabilityInput` |
| 1919 | :param cwe_ids: iterable of string |
| 1920 | :param credits: iterable of :class:`github.AdvisoryCredit.AdvisoryCredit` |
| 1921 | :rtype: :class:`github.RepositoryAdvisory.RepositoryAdvisory` |
| 1922 | """ |
| 1923 | return self.__create_repository_advisory( |
| 1924 | summary=summary, |
| 1925 | description=description, |
| 1926 | severity_or_cvss_vector_string=severity_or_cvss_vector_string, |
| 1927 | cve_id=cve_id, |
| 1928 | vulnerabilities=vulnerabilities, |
| 1929 | cwe_ids=cwe_ids, |
| 1930 | credits=credits, |
| 1931 | private_vulnerability_reporting=True, |
| 1932 | ) |
| 1933 | |
| 1934 | def __create_repository_advisory( |
| 1935 | self, |
nothing calls this directly
no test coverage detected