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

Method publish

github/RepositoryAdvisory.py:341–354  ·  view source on GitHub ↗

Publishes the advisory. :calls: `PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id} `

(self)

Source from the content-addressed store, hash-verified

339 self._useAttributes(data)
340
341 def publish(self) -> None:
342 """
343 Publishes the advisory.
344
345 :calls: `PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id} <https://docs.github.com/en/rest/security-advisories/repository-advisories>`
346
347 """
348 patch_parameters = {"state": "published"}
349 headers, data = self._requester.requestJsonAndCheck(
350 "PATCH",
351 self.url,
352 input=patch_parameters,
353 )
354 self._useAttributes(data)
355
356 def request_cve(self) -> None:
357 """

Callers

nothing calls this directly

Calls 2

_useAttributesMethod · 0.95
requestJsonAndCheckMethod · 0.80

Tested by

no test coverage detected