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

Method accept_report

github/RepositoryAdvisory.py:326–339  ·  view source on GitHub ↗

Accepts the advisory reported from an external reporter via private vulnerability reporting. :calls: `PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id} `

(self)

Source from the content-addressed store, hash-verified

324 return self
325
326 def accept_report(self) -> None:
327 """
328 Accepts the advisory reported from an external reporter via private vulnerability reporting.
329
330 :calls: `PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id} <https://docs.github.com/en/rest/security-advisories/repository-advisories>`
331
332 """
333 patch_parameters = {"state": "draft"}
334 headers, data = self._requester.requestJsonAndCheck(
335 "PATCH",
336 self.url,
337 input=patch_parameters,
338 )
339 self._useAttributes(data)
340
341 def publish(self) -> None:
342 """

Callers

nothing calls this directly

Calls 2

_useAttributesMethod · 0.95
requestJsonAndCheckMethod · 0.80

Tested by

no test coverage detected