From efe15449886a545a83088841708edafd95251269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Thu, 12 Oct 2023 13:17:04 +0200 Subject: [PATCH] Add: Enable GitHub code scanning API Allow to use the GitHub code scanning API --- pontos/github/api/api.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pontos/github/api/api.py b/pontos/github/api/api.py index 4703b3cd..4298492e 100644 --- a/pontos/github/api/api.py +++ b/pontos/github/api/api.py @@ -24,6 +24,7 @@ from pontos.github.api.artifacts import GitHubAsyncRESTArtifacts from pontos.github.api.branch import GitHubAsyncRESTBranches from pontos.github.api.client import GitHubAsyncRESTClient +from pontos.github.api.code_scanning import GitHubAsyncRESTCodeScanning from pontos.github.api.contents import GitHubAsyncRESTContent from pontos.github.api.dependabot import GitHubAsyncRESTDependabot from pontos.github.api.helper import ( @@ -166,6 +167,13 @@ def secret_scanning(self) -> GitHubAsyncRESTSecretScanning: """ return GitHubAsyncRESTSecretScanning(self._client) + @property + def code_scanning(self) -> GitHubAsyncRESTCodeScanning: + """ + Code scanning related API + """ + return GitHubAsyncRESTCodeScanning(self._client) + @property def teams(self) -> GitHubAsyncRESTTeams: """