Offers credit to a user for a vulnerability in a repository. Unless you are giving credit to yourself, the user having credit offered will need to explicitly accept the credit. :calls: `PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id} <https://docs.github.com/en/re
(
self,
login_or_user: str | github.NamedUser.NamedUser,
credit_type: str,
)
| 186 | self._useAttributes(data) |
| 187 | |
| 188 | def offer_credit( |
| 189 | self, |
| 190 | login_or_user: str | github.NamedUser.NamedUser, |
| 191 | credit_type: str, |
| 192 | ) -> None: |
| 193 | """ |
| 194 | Offers credit to a user for a vulnerability in a repository. |
| 195 | |
| 196 | Unless you are giving credit to yourself, the user having credit offered will need to explicitly accept the credit. |
| 197 | :calls: `PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id} <https://docs.github.com/en/rest/security-advisories/repository-advisories>` |
| 198 | |
| 199 | """ |
| 200 | self.offer_credits([{"login": login_or_user, "type": credit_type}]) |
| 201 | |
| 202 | def offer_credits( |
| 203 | self, |
no test coverage detected