Security Advisories

SecurityAdvisories

class ghastoolkit.SecurityAdvisories(repository: Repository | None = None)

Security Advisories.

__init__(repository: Repository | None = None) None

Security Advisories REST API.

https://docs.github.com/en/rest/security-advisories/repository-advisories

createAdvisory(advisory: Advisory, repository: Repository | None = None)

Create a GitHub Security Advisories for a repository.

https://docs.github.com/en/rest/security-advisories/repository-advisories#create-a-repository-security-advisory

createPrivateAdvisory(advisory: Advisory, repository: Repository | None = None)

Create a GitHub Security Advisories for a repository.

getAdvisories() Advisories

Get list of security advisories from a repository.

https://docs.github.com/en/rest/security-advisories/repository-advisories#list-repository-security-advisories

getAdvisory(ghsa_id: str) Advisory

Get advisory by ghsa id.

https://docs.github.com/en/rest/security-advisories/repository-advisories#get-a-repository-security-advisory

loadAdvisoryData(data: Dict) Advisory

Load Advisory from API data.

updateAdvisory(advisory: Advisory, repository: Repository | None = None)

Update GitHub Security Advisory.

https://docs.github.com/en/rest/security-advisories/repository-advisories#update-a-repository-security-advisory