Skip to content

Commit efe1544

Browse files
committed
Add: Enable GitHub code scanning API
Allow to use the GitHub code scanning API
1 parent 070f2de commit efe1544

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pontos/github/api/api.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from pontos.github.api.artifacts import GitHubAsyncRESTArtifacts
2525
from pontos.github.api.branch import GitHubAsyncRESTBranches
2626
from pontos.github.api.client import GitHubAsyncRESTClient
27+
from pontos.github.api.code_scanning import GitHubAsyncRESTCodeScanning
2728
from pontos.github.api.contents import GitHubAsyncRESTContent
2829
from pontos.github.api.dependabot import GitHubAsyncRESTDependabot
2930
from pontos.github.api.helper import (
@@ -166,6 +167,13 @@ def secret_scanning(self) -> GitHubAsyncRESTSecretScanning:
166167
"""
167168
return GitHubAsyncRESTSecretScanning(self._client)
168169

170+
@property
171+
def code_scanning(self) -> GitHubAsyncRESTCodeScanning:
172+
"""
173+
Code scanning related API
174+
"""
175+
return GitHubAsyncRESTCodeScanning(self._client)
176+
169177
@property
170178
def teams(self) -> GitHubAsyncRESTTeams:
171179
"""

0 commit comments

Comments
 (0)