Accepts the advisory reported from an external reporter via private vulnerability reporting. :calls: `PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id} `
(self)
| 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 | """ |
nothing calls this directly
no test coverage detected