PyGithub-asyncio 3.0.0b1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- githubasyncio/AccessToken.py +159 -0
- githubasyncio/AdvisoryBase.py +163 -0
- githubasyncio/AdvisoryCredit.py +131 -0
- githubasyncio/AdvisoryCreditDetailed.py +110 -0
- githubasyncio/AdvisoryVulnerability.py +191 -0
- githubasyncio/AdvisoryVulnerabilityPackage.py +93 -0
- githubasyncio/AppAuthentication.py +58 -0
- githubasyncio/ApplicationOAuth.py +200 -0
- githubasyncio/Artifact.py +183 -0
- githubasyncio/Auth.py +560 -0
- githubasyncio/AuthenticatedUser.py +1251 -0
- githubasyncio/Authorization.py +192 -0
- githubasyncio/AuthorizationApplication.py +73 -0
- githubasyncio/Autolink.py +104 -0
- githubasyncio/Branch.py +689 -0
- githubasyncio/BranchProtection.py +224 -0
- githubasyncio/CVSS.py +83 -0
- githubasyncio/CWE.py +75 -0
- githubasyncio/CheckRun.py +315 -0
- githubasyncio/CheckRunAnnotation.py +134 -0
- githubasyncio/CheckRunOutput.py +108 -0
- githubasyncio/CheckSuite.py +319 -0
- githubasyncio/Clones.py +97 -0
- githubasyncio/CodeScanAlert.py +215 -0
- githubasyncio/CodeScanAlertInstance.py +134 -0
- githubasyncio/CodeScanAlertInstanceLocation.py +102 -0
- githubasyncio/CodeScanRule.py +134 -0
- githubasyncio/CodeScanTool.py +94 -0
- githubasyncio/CodeSecurityConfig.py +301 -0
- githubasyncio/CodeSecurityConfigRepository.py +70 -0
- githubasyncio/Commit.py +442 -0
- githubasyncio/CommitCombinedStatus.py +126 -0
- githubasyncio/CommitComment.py +270 -0
- githubasyncio/CommitStats.py +78 -0
- githubasyncio/CommitStatus.py +169 -0
- githubasyncio/Comparison.py +219 -0
- githubasyncio/Consts.py +197 -0
- githubasyncio/ContentFile.py +304 -0
- githubasyncio/Copilot.py +97 -0
- githubasyncio/CopilotSeat.py +132 -0
- githubasyncio/DefaultCodeSecurityConfig.py +93 -0
- githubasyncio/DependabotAlert.py +184 -0
- githubasyncio/DependabotAlertAdvisory.py +82 -0
- githubasyncio/DependabotAlertDependency.py +100 -0
- githubasyncio/DependabotAlertVulnerability.py +85 -0
- githubasyncio/Deployment.py +314 -0
- githubasyncio/DeploymentBranchPolicy.py +102 -0
- githubasyncio/DeploymentStatus.py +201 -0
- githubasyncio/DiscussionBase.py +140 -0
- githubasyncio/DiscussionCommentBase.py +140 -0
- githubasyncio/Download.py +256 -0
- githubasyncio/Enterprise.py +175 -0
- githubasyncio/EnterpriseConsumedLicenses.py +138 -0
- githubasyncio/Environment.py +354 -0
- githubasyncio/EnvironmentDeploymentBranchPolicy.py +87 -0
- githubasyncio/EnvironmentProtectionRule.py +117 -0
- githubasyncio/EnvironmentProtectionRuleReviewer.py +110 -0
- githubasyncio/Event.py +134 -0
- githubasyncio/File.py +142 -0
- githubasyncio/GeneratedReleaseNotes.py +68 -0
- githubasyncio/Gist.py +373 -0
- githubasyncio/GistComment.py +162 -0
- githubasyncio/GistFile.py +106 -0
- githubasyncio/GistHistoryState.py +245 -0
- githubasyncio/GitAuthor.py +94 -0
- githubasyncio/GitBlob.py +123 -0
- githubasyncio/GitCommit.py +208 -0
- githubasyncio/GitCommitVerification.py +103 -0
- githubasyncio/GitObject.py +84 -0
- githubasyncio/GitRef.py +122 -0
- githubasyncio/GitRelease.py +476 -0
- githubasyncio/GitReleaseAsset.py +232 -0
- githubasyncio/GitTag.py +143 -0
- githubasyncio/GitTree.py +113 -0
- githubasyncio/GitTreeElement.py +104 -0
- githubasyncio/GithubApp.py +236 -0
- githubasyncio/GithubException.py +226 -0
- githubasyncio/GithubIntegration.py +365 -0
- githubasyncio/GithubObject.py +910 -0
- githubasyncio/GithubRetry.py +253 -0
- githubasyncio/GitignoreTemplate.py +88 -0
- githubasyncio/GlobalAdvisory.py +141 -0
- githubasyncio/Hook.py +238 -0
- githubasyncio/HookDelivery.py +243 -0
- githubasyncio/HookDescription.py +85 -0
- githubasyncio/HookResponse.py +83 -0
- githubasyncio/InputFileContent.py +63 -0
- githubasyncio/InputGitAuthor.py +71 -0
- githubasyncio/InputGitTreeElement.py +79 -0
- githubasyncio/Installation.py +298 -0
- githubasyncio/InstallationAuthorization.py +138 -0
- githubasyncio/Invitation.py +171 -0
- githubasyncio/Issue.py +955 -0
- githubasyncio/IssueComment.py +309 -0
- githubasyncio/IssueDependenciesSummary.py +77 -0
- githubasyncio/IssueEvent.py +296 -0
- githubasyncio/IssuePullRequest.py +97 -0
- githubasyncio/IssueType.py +123 -0
- githubasyncio/Label.py +186 -0
- githubasyncio/License.py +169 -0
- githubasyncio/MainClass.py +1142 -0
- githubasyncio/Membership.py +154 -0
- githubasyncio/MergedUpstream.py +71 -0
- githubasyncio/Migration.py +281 -0
- githubasyncio/Milestone.py +255 -0
- githubasyncio/NamedEnterpriseUser.py +207 -0
- githubasyncio/NamedUser.py +841 -0
- githubasyncio/Notification.py +182 -0
- githubasyncio/NotificationSubject.py +96 -0
- githubasyncio/Organization.py +2462 -0
- githubasyncio/OrganizationCodeScanAlert.py +65 -0
- githubasyncio/OrganizationCustomProperty.py +215 -0
- githubasyncio/OrganizationDependabotAlert.py +75 -0
- githubasyncio/OrganizationSecret.py +191 -0
- githubasyncio/OrganizationSecretScanAlert.py +112 -0
- githubasyncio/OrganizationVariable.py +141 -0
- githubasyncio/PaginatedList.py +652 -0
- githubasyncio/Path.py +102 -0
- githubasyncio/Permissions.py +113 -0
- githubasyncio/Plan.py +108 -0
- githubasyncio/Project.py +286 -0
- githubasyncio/ProjectCard.py +257 -0
- githubasyncio/ProjectColumn.py +227 -0
- githubasyncio/PublicKey.py +138 -0
- githubasyncio/PullRequest.py +1202 -0
- githubasyncio/PullRequestComment.py +401 -0
- githubasyncio/PullRequestMergeStatus.py +89 -0
- githubasyncio/PullRequestPart.py +110 -0
- githubasyncio/PullRequestReview.py +214 -0
- githubasyncio/Rate.py +123 -0
- githubasyncio/RateLimit.py +210 -0
- githubasyncio/RateLimitOverview.py +104 -0
- githubasyncio/Reaction.py +128 -0
- githubasyncio/Referrer.py +94 -0
- githubasyncio/RepoCodeSecurityConfig.py +93 -0
- githubasyncio/Repository.py +5211 -0
- githubasyncio/RepositoryAdvisory.py +431 -0
- githubasyncio/RepositoryDiscussion.py +221 -0
- githubasyncio/RepositoryDiscussionCategory.py +150 -0
- githubasyncio/RepositoryDiscussionComment.py +159 -0
- githubasyncio/RepositoryKey.py +166 -0
- githubasyncio/RepositoryPreferences.py +82 -0
- githubasyncio/RepositoryRulesetBypassActor.py +75 -0
- githubasyncio/Requester.py +1518 -0
- githubasyncio/RequiredPullRequestReviews.py +269 -0
- githubasyncio/RequiredStatusChecks.py +153 -0
- githubasyncio/Rule.py +134 -0
- githubasyncio/Ruleset.py +292 -0
- githubasyncio/Secret.py +139 -0
- githubasyncio/SecretScanAlert.py +317 -0
- githubasyncio/SecretScanAlertInstance.py +128 -0
- githubasyncio/SecurityAndAnalysis.py +188 -0
- githubasyncio/SecurityAndAnalysisFeature.py +79 -0
- githubasyncio/SelfHostedActionsRunner.py +129 -0
- githubasyncio/SelfHostedActionsRunnerApplication.py +92 -0
- githubasyncio/SelfHostedActionsRunnerJitConfig.py +74 -0
- githubasyncio/SelfHostedActionsRunnerToken.py +118 -0
- githubasyncio/SourceImport.py +260 -0
- githubasyncio/Stargazer.py +88 -0
- githubasyncio/StatsCodeFrequency.py +81 -0
- githubasyncio/StatsCommitActivity.py +86 -0
- githubasyncio/StatsContributor.py +138 -0
- githubasyncio/StatsParticipation.py +78 -0
- githubasyncio/StatsPunchCard.py +76 -0
- githubasyncio/SubIssueSummary.py +70 -0
- githubasyncio/Tag.py +108 -0
- githubasyncio/Team.py +618 -0
- githubasyncio/TeamDiscussion.py +137 -0
- githubasyncio/TimelineEvent.py +164 -0
- githubasyncio/TimelineEventSource.py +81 -0
- githubasyncio/Topic.py +177 -0
- githubasyncio/Traffic.py +95 -0
- githubasyncio/UserKey.py +141 -0
- githubasyncio/Variable.py +155 -0
- githubasyncio/View.py +97 -0
- githubasyncio/Workflow.py +335 -0
- githubasyncio/WorkflowJob.py +253 -0
- githubasyncio/WorkflowRun.py +480 -0
- githubasyncio/WorkflowStep.py +118 -0
- githubasyncio/__init__.py +38 -0
- githubasyncio/compat/__init__.py +52 -0
- githubasyncio/requestlib/__init__.py +29 -0
- pygithub_asyncio-3.0.0b1.dist-info/METADATA +102 -0
- pygithub_asyncio-3.0.0b1.dist-info/RECORD +188 -0
- pygithub_asyncio-3.0.0b1.dist-info/WHEEL +5 -0
- pygithub_asyncio-3.0.0b1.dist-info/licenses/COPYING +674 -0
- pygithub_asyncio-3.0.0b1.dist-info/licenses/COPYING.LESSER +165 -0
- pygithub_asyncio-3.0.0b1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
# FILE AUTO GENERATED DO NOT TOUCH
|
|
2
|
+
############################ Copyrights and license ############################
|
|
3
|
+
# #
|
|
4
|
+
# Copyright 2026 Enrico Minack <github@enrico.minack.dev> #
|
|
5
|
+
# Copyright 2026 Matt Davis <35502728+matt-davis27@users.noreply.github.com> #
|
|
6
|
+
# #
|
|
7
|
+
# This file is part of PyGithub. #
|
|
8
|
+
# http://pygithub.readthedocs.io/ #
|
|
9
|
+
# #
|
|
10
|
+
# PyGithub is free software: you can redistribute it and/or modify it under #
|
|
11
|
+
# the terms of the GNU Lesser General Public License as published by the Free #
|
|
12
|
+
# Software Foundation, either version 3 of the License, or (at your option) #
|
|
13
|
+
# any later version. #
|
|
14
|
+
# #
|
|
15
|
+
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
|
16
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
|
17
|
+
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
|
18
|
+
# details. #
|
|
19
|
+
# #
|
|
20
|
+
# You should have received a copy of the GNU Lesser General Public License #
|
|
21
|
+
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
|
22
|
+
# #
|
|
23
|
+
################################################################################
|
|
24
|
+
|
|
25
|
+
from __future__ import annotations
|
|
26
|
+
|
|
27
|
+
from datetime import datetime
|
|
28
|
+
from typing import TYPE_CHECKING, Any
|
|
29
|
+
|
|
30
|
+
import githubasyncio.NamedUser
|
|
31
|
+
import githubasyncio.Organization
|
|
32
|
+
import githubasyncio.SecretScanAlertInstance
|
|
33
|
+
from githubasyncio.GithubObject import Attribute, NonCompletableGithubObject, NotSet
|
|
34
|
+
|
|
35
|
+
if TYPE_CHECKING:
|
|
36
|
+
from githubasyncio.NamedUser import NamedUser
|
|
37
|
+
from githubasyncio.Organization import Organization
|
|
38
|
+
from githubasyncio.SecretScanAlertInstance import SecretScanAlertInstance
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class SecretScanAlert(NonCompletableGithubObject):
|
|
42
|
+
"""
|
|
43
|
+
This class represents alerts from secret scanning.
|
|
44
|
+
|
|
45
|
+
The reference can be found here
|
|
46
|
+
https://docs.github.com/en/rest/reference/secret-scanning.
|
|
47
|
+
|
|
48
|
+
The OpenAPI schema can be found at
|
|
49
|
+
|
|
50
|
+
- /components/schemas/secret-scanning-alert
|
|
51
|
+
- /components/schemas/secret-scanning-alert-with-metadata
|
|
52
|
+
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
def _initAttributes(self) -> None:
|
|
56
|
+
self._assigned_to: Attribute[NamedUser | Organization] = NotSet
|
|
57
|
+
self._closure_request_comment: Attribute[str] = NotSet
|
|
58
|
+
self._closure_request_reviewer: Attribute[NamedUser | Organization] = NotSet
|
|
59
|
+
self._closure_request_reviewer_comment: Attribute[str] = NotSet
|
|
60
|
+
self._created_at: Attribute[datetime] = NotSet
|
|
61
|
+
self._first_location_detected: Attribute[SecretScanAlertInstance] = NotSet
|
|
62
|
+
self._has_more_locations: Attribute[bool] = NotSet
|
|
63
|
+
self._html_url: Attribute[str] = NotSet
|
|
64
|
+
self._is_base64_encoded: Attribute[bool] = NotSet
|
|
65
|
+
self._locations_url: Attribute[str] = NotSet
|
|
66
|
+
self._multi_repo: Attribute[bool] = NotSet
|
|
67
|
+
self._number: Attribute[int] = NotSet
|
|
68
|
+
self._provider: Attribute[str] = NotSet
|
|
69
|
+
self._provider_slug: Attribute[str] = NotSet
|
|
70
|
+
self._publicly_leaked: Attribute[bool] = NotSet
|
|
71
|
+
self._push_protection_bypass_request_comment: Attribute[str | None] = NotSet
|
|
72
|
+
self._push_protection_bypass_request_html_url: Attribute[str | None] = NotSet
|
|
73
|
+
self._push_protection_bypass_request_reviewer: Attribute[NamedUser | None] = NotSet
|
|
74
|
+
self._push_protection_bypass_request_reviewer_comment: Attribute[str | None] = NotSet
|
|
75
|
+
self._push_protection_bypassed: Attribute[bool] = NotSet
|
|
76
|
+
self._push_protection_bypassed_at: Attribute[datetime | None] = NotSet
|
|
77
|
+
self._push_protection_bypassed_by: Attribute[NamedUser | None] = NotSet
|
|
78
|
+
self._resolution: Attribute[str | None] = NotSet
|
|
79
|
+
self._resolution_comment: Attribute[str | None] = NotSet
|
|
80
|
+
self._resolved_at: Attribute[datetime | None] = NotSet
|
|
81
|
+
self._resolved_by: Attribute[NamedUser | None] = NotSet
|
|
82
|
+
self._secret: Attribute[str] = NotSet
|
|
83
|
+
self._secret_type: Attribute[str] = NotSet
|
|
84
|
+
self._secret_type_display_name: Attribute[str] = NotSet
|
|
85
|
+
self._state: Attribute[str] = NotSet
|
|
86
|
+
self._updated_at: Attribute[datetime] = NotSet
|
|
87
|
+
self._url: Attribute[str] = NotSet
|
|
88
|
+
self._validity: Attribute[str] = NotSet
|
|
89
|
+
|
|
90
|
+
def __repr__(self) -> str:
|
|
91
|
+
return self.get__repr__({"number": self._number.value})
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
def assigned_to(self) -> NamedUser | Organization:
|
|
95
|
+
return self._assigned_to.value
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
def closure_request_comment(self) -> str:
|
|
99
|
+
return self._closure_request_comment.value
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def closure_request_reviewer(self) -> NamedUser | Organization:
|
|
103
|
+
return self._closure_request_reviewer.value
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
def closure_request_reviewer_comment(self) -> str:
|
|
107
|
+
return self._closure_request_reviewer_comment.value
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def created_at(self) -> datetime:
|
|
111
|
+
return self._created_at.value
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
def first_location_detected(self) -> SecretScanAlertInstance:
|
|
115
|
+
return self._first_location_detected.value
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
def has_more_locations(self) -> bool:
|
|
119
|
+
return self._has_more_locations.value
|
|
120
|
+
|
|
121
|
+
@property
|
|
122
|
+
def html_url(self) -> str:
|
|
123
|
+
return self._html_url.value
|
|
124
|
+
|
|
125
|
+
@property
|
|
126
|
+
def is_base64_encoded(self) -> bool:
|
|
127
|
+
return self._is_base64_encoded.value
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
def locations_url(self) -> str:
|
|
131
|
+
return self._locations_url.value
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def multi_repo(self) -> bool:
|
|
135
|
+
return self._multi_repo.value
|
|
136
|
+
|
|
137
|
+
@property
|
|
138
|
+
def number(self) -> int:
|
|
139
|
+
return self._number.value
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
def provider(self) -> str:
|
|
143
|
+
return self._provider.value
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
def provider_slug(self) -> str:
|
|
147
|
+
return self._provider_slug.value
|
|
148
|
+
|
|
149
|
+
@property
|
|
150
|
+
def publicly_leaked(self) -> bool:
|
|
151
|
+
return self._publicly_leaked.value
|
|
152
|
+
|
|
153
|
+
@property
|
|
154
|
+
def push_protection_bypass_request_comment(self) -> str | None:
|
|
155
|
+
return self._push_protection_bypass_request_comment.value
|
|
156
|
+
|
|
157
|
+
@property
|
|
158
|
+
def push_protection_bypass_request_html_url(self) -> str | None:
|
|
159
|
+
return self._push_protection_bypass_request_html_url.value
|
|
160
|
+
|
|
161
|
+
@property
|
|
162
|
+
def push_protection_bypass_request_reviewer(self) -> NamedUser | None:
|
|
163
|
+
return self._push_protection_bypass_request_reviewer.value
|
|
164
|
+
|
|
165
|
+
@property
|
|
166
|
+
def push_protection_bypass_request_reviewer_comment(self) -> str | None:
|
|
167
|
+
return self._push_protection_bypass_request_reviewer_comment.value
|
|
168
|
+
|
|
169
|
+
@property
|
|
170
|
+
def push_protection_bypassed(self) -> bool:
|
|
171
|
+
return self._push_protection_bypassed.value
|
|
172
|
+
|
|
173
|
+
@property
|
|
174
|
+
def push_protection_bypassed_at(self) -> datetime | None:
|
|
175
|
+
return self._push_protection_bypassed_at.value
|
|
176
|
+
|
|
177
|
+
@property
|
|
178
|
+
def push_protection_bypassed_by(self) -> NamedUser | None:
|
|
179
|
+
return self._push_protection_bypassed_by.value
|
|
180
|
+
|
|
181
|
+
@property
|
|
182
|
+
def resolution(self) -> str | None:
|
|
183
|
+
return self._resolution.value
|
|
184
|
+
|
|
185
|
+
@property
|
|
186
|
+
def resolution_comment(self) -> str | None:
|
|
187
|
+
return self._resolution_comment.value
|
|
188
|
+
|
|
189
|
+
@property
|
|
190
|
+
def resolved_at(self) -> datetime | None:
|
|
191
|
+
return self._resolved_at.value
|
|
192
|
+
|
|
193
|
+
@property
|
|
194
|
+
def resolved_by(self) -> NamedUser | None:
|
|
195
|
+
return self._resolved_by.value
|
|
196
|
+
|
|
197
|
+
@property
|
|
198
|
+
def secret(self) -> str:
|
|
199
|
+
return self._secret.value
|
|
200
|
+
|
|
201
|
+
@property
|
|
202
|
+
def secret_type(self) -> str:
|
|
203
|
+
return self._secret_type.value
|
|
204
|
+
|
|
205
|
+
@property
|
|
206
|
+
def secret_type_display_name(self) -> str:
|
|
207
|
+
return self._secret_type_display_name.value
|
|
208
|
+
|
|
209
|
+
@property
|
|
210
|
+
def state(self) -> str:
|
|
211
|
+
return self._state.value
|
|
212
|
+
|
|
213
|
+
@property
|
|
214
|
+
def updated_at(self) -> datetime:
|
|
215
|
+
return self._updated_at.value
|
|
216
|
+
|
|
217
|
+
@property
|
|
218
|
+
def url(self) -> str:
|
|
219
|
+
return self._url.value
|
|
220
|
+
|
|
221
|
+
@property
|
|
222
|
+
def validity(self) -> str:
|
|
223
|
+
return self._validity.value
|
|
224
|
+
|
|
225
|
+
def _useAttributes(self, attributes: dict[str, Any]) -> None:
|
|
226
|
+
if "assigned_to" in attributes: # pragma no branch
|
|
227
|
+
self._assigned_to = self._makeUnionClassAttributeFromTypeKey(
|
|
228
|
+
"type",
|
|
229
|
+
"User",
|
|
230
|
+
attributes["assigned_to"],
|
|
231
|
+
(githubasyncio.NamedUser.NamedUser, "User"),
|
|
232
|
+
(githubasyncio.Organization.Organization, "Organization"),
|
|
233
|
+
)
|
|
234
|
+
if "closure_request_comment" in attributes: # pragma no branch
|
|
235
|
+
self._closure_request_comment = self._makeStringAttribute(attributes["closure_request_comment"])
|
|
236
|
+
if "closure_request_reviewer" in attributes: # pragma no branch
|
|
237
|
+
self._closure_request_reviewer = self._makeUnionClassAttributeFromTypeKey(
|
|
238
|
+
"type",
|
|
239
|
+
"User",
|
|
240
|
+
attributes["closure_request_reviewer"],
|
|
241
|
+
(githubasyncio.NamedUser.NamedUser, "User"),
|
|
242
|
+
(githubasyncio.Organization.Organization, "Organization"),
|
|
243
|
+
)
|
|
244
|
+
if "closure_request_reviewer_comment" in attributes: # pragma no branch
|
|
245
|
+
self._closure_request_reviewer_comment = self._makeStringAttribute(
|
|
246
|
+
attributes["closure_request_reviewer_comment"]
|
|
247
|
+
)
|
|
248
|
+
if "created_at" in attributes:
|
|
249
|
+
self._created_at = self._makeDatetimeAttribute(attributes["created_at"])
|
|
250
|
+
if "first_location_detected" in attributes:
|
|
251
|
+
self._first_location_detected = self._makeClassAttribute(
|
|
252
|
+
githubasyncio.SecretScanAlertInstance.SecretScanAlertInstance, attributes["first_location_detected"]
|
|
253
|
+
)
|
|
254
|
+
if "has_more_locations" in attributes:
|
|
255
|
+
self._has_more_locations = self._makeBoolAttribute(attributes["has_more_locations"])
|
|
256
|
+
if "html_url" in attributes:
|
|
257
|
+
self._html_url = self._makeStringAttribute(attributes["html_url"])
|
|
258
|
+
if "is_base64_encoded" in attributes:
|
|
259
|
+
self._is_base64_encoded = self._makeBoolAttribute(attributes["is_base64_encoded"])
|
|
260
|
+
if "locations_url" in attributes:
|
|
261
|
+
self._locations_url = self._makeStringAttribute(attributes["locations_url"])
|
|
262
|
+
if "multi_repo" in attributes:
|
|
263
|
+
self._multi_repo = self._makeBoolAttribute(attributes["multi_repo"])
|
|
264
|
+
if "number" in attributes:
|
|
265
|
+
self._number = self._makeIntAttribute(attributes["number"])
|
|
266
|
+
if "provider" in attributes: # pragma no branch
|
|
267
|
+
self._provider = self._makeStringAttribute(attributes["provider"])
|
|
268
|
+
if "provider_slug" in attributes: # pragma no branch
|
|
269
|
+
self._provider_slug = self._makeStringAttribute(attributes["provider_slug"])
|
|
270
|
+
if "publicly_leaked" in attributes:
|
|
271
|
+
self._publicly_leaked = self._makeBoolAttribute(attributes["publicly_leaked"])
|
|
272
|
+
if "push_protection_bypass_request_comment" in attributes:
|
|
273
|
+
self._push_protection_bypass_request_comment = self._makeStringAttribute(
|
|
274
|
+
attributes["push_protection_bypass_request_comment"]
|
|
275
|
+
)
|
|
276
|
+
if "push_protection_bypass_request_html_url" in attributes:
|
|
277
|
+
self._push_protection_bypass_request_html_url = self._makeStringAttribute(
|
|
278
|
+
attributes["push_protection_bypass_request_html_url"]
|
|
279
|
+
)
|
|
280
|
+
if "push_protection_bypass_request_reviewer" in attributes:
|
|
281
|
+
self._push_protection_bypass_request_reviewer = self._makeClassAttribute(
|
|
282
|
+
githubasyncio.NamedUser.NamedUser, attributes["push_protection_bypass_request_reviewer"]
|
|
283
|
+
)
|
|
284
|
+
if "push_protection_bypass_request_reviewer_comment" in attributes:
|
|
285
|
+
self._push_protection_bypass_request_reviewer_comment = self._makeStringAttribute(
|
|
286
|
+
attributes["push_protection_bypass_request_reviewer_comment"]
|
|
287
|
+
)
|
|
288
|
+
if "push_protection_bypassed" in attributes:
|
|
289
|
+
self._push_protection_bypassed = self._makeBoolAttribute(attributes["push_protection_bypassed"])
|
|
290
|
+
if "push_protection_bypassed_at" in attributes:
|
|
291
|
+
self._push_protection_bypassed_at = self._makeDatetimeAttribute(attributes["push_protection_bypassed_at"])
|
|
292
|
+
if "push_protection_bypassed_by" in attributes:
|
|
293
|
+
self._push_protection_bypassed_by = self._makeClassAttribute(
|
|
294
|
+
githubasyncio.NamedUser.NamedUser, attributes["push_protection_bypassed_by"]
|
|
295
|
+
)
|
|
296
|
+
if "resolution" in attributes:
|
|
297
|
+
self._resolution = self._makeStringAttribute(attributes["resolution"])
|
|
298
|
+
if "resolution_comment" in attributes:
|
|
299
|
+
self._resolution_comment = self._makeStringAttribute(attributes["resolution_comment"])
|
|
300
|
+
if "resolved_at" in attributes:
|
|
301
|
+
self._resolved_at = self._makeDatetimeAttribute(attributes["resolved_at"])
|
|
302
|
+
if "resolved_by" in attributes:
|
|
303
|
+
self._resolved_by = self._makeClassAttribute(githubasyncio.NamedUser.NamedUser, attributes["resolved_by"])
|
|
304
|
+
if "secret" in attributes:
|
|
305
|
+
self._secret = self._makeStringAttribute(attributes["secret"])
|
|
306
|
+
if "secret_type" in attributes:
|
|
307
|
+
self._secret_type = self._makeStringAttribute(attributes["secret_type"])
|
|
308
|
+
if "secret_type_display_name" in attributes:
|
|
309
|
+
self._secret_type_display_name = self._makeStringAttribute(attributes["secret_type_display_name"])
|
|
310
|
+
if "state" in attributes:
|
|
311
|
+
self._state = self._makeStringAttribute(attributes["state"])
|
|
312
|
+
if "updated_at" in attributes:
|
|
313
|
+
self._updated_at = self._makeDatetimeAttribute(attributes["updated_at"])
|
|
314
|
+
if "url" in attributes:
|
|
315
|
+
self._url = self._makeStringAttribute(attributes["url"])
|
|
316
|
+
if "validity" in attributes:
|
|
317
|
+
self._validity = self._makeStringAttribute(attributes["validity"])
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# FILE AUTO GENERATED DO NOT TOUCH
|
|
2
|
+
############################ Copyrights and license ############################
|
|
3
|
+
# #
|
|
4
|
+
# Copyright 2020 Dhruv Manilawala <dhruvmanila@gmail.com> #
|
|
5
|
+
# Copyright 2020 Steve Kowalik <steven@wedontsleep.org> #
|
|
6
|
+
# Copyright 2022 Eric Nieuwland <eric.nieuwland@gmail.com> #
|
|
7
|
+
# Copyright 2023 Enrico Minack <github@enrico.minack.dev> #
|
|
8
|
+
# Copyright 2023 Trim21 <trim21.me@gmail.com> #
|
|
9
|
+
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
|
|
10
|
+
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
|
|
11
|
+
# Copyright 2025 Enrico Minack <github@enrico.minack.dev> #
|
|
12
|
+
# Copyright 2026 Enrico Minack <github@enrico.minack.dev> #
|
|
13
|
+
# Copyright 2026 Matt Davis <35502728+matt-davis27@users.noreply.github.com> #
|
|
14
|
+
# #
|
|
15
|
+
# This file is part of PyGithub. #
|
|
16
|
+
# http://pygithub.readthedocs.io/ #
|
|
17
|
+
# #
|
|
18
|
+
# PyGithub is free software: you can redistribute it and/or modify it under #
|
|
19
|
+
# the terms of the GNU Lesser General Public License as published by the Free #
|
|
20
|
+
# Software Foundation, either version 3 of the License, or (at your option) #
|
|
21
|
+
# any later version. #
|
|
22
|
+
# #
|
|
23
|
+
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
|
24
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
|
25
|
+
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
|
26
|
+
# details. #
|
|
27
|
+
# #
|
|
28
|
+
# You should have received a copy of the GNU Lesser General Public License #
|
|
29
|
+
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
|
30
|
+
# #
|
|
31
|
+
################################################################################
|
|
32
|
+
|
|
33
|
+
from __future__ import annotations
|
|
34
|
+
|
|
35
|
+
from typing import Any
|
|
36
|
+
|
|
37
|
+
from githubasyncio.GithubObject import Attribute, NonCompletableGithubObject, NotSet
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class SecretScanAlertInstance(NonCompletableGithubObject):
|
|
41
|
+
"""
|
|
42
|
+
This class represents secret scanning alert instances.
|
|
43
|
+
|
|
44
|
+
The reference can be found here
|
|
45
|
+
https://docs.github.com/en/rest/reference/secret-scanning.
|
|
46
|
+
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
def _initAttributes(self) -> None:
|
|
50
|
+
self._blob_sha: Attribute[str] = NotSet
|
|
51
|
+
self._blob_url: Attribute[str] = NotSet
|
|
52
|
+
self._commit_sha: Attribute[str] = NotSet
|
|
53
|
+
self._commit_url: Attribute[str] = NotSet
|
|
54
|
+
self._end_column: Attribute[int] = NotSet
|
|
55
|
+
self._end_line: Attribute[int] = NotSet
|
|
56
|
+
self._path: Attribute[str] = NotSet
|
|
57
|
+
self._start_column: Attribute[int] = NotSet
|
|
58
|
+
self._start_line: Attribute[int] = NotSet
|
|
59
|
+
|
|
60
|
+
def __repr__(self) -> str:
|
|
61
|
+
return self.get__repr__(
|
|
62
|
+
{
|
|
63
|
+
"path": self._path.value,
|
|
64
|
+
"start_line": self._start_line.value,
|
|
65
|
+
"start_column": self.start_column,
|
|
66
|
+
"end_line": self.end_line,
|
|
67
|
+
"end_column": self.end_column,
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
def __str__(self) -> str:
|
|
72
|
+
return f"{self.path} @ l{self.start_line}:c{self.start_column}-l{self.end_line}:c{self.end_column}"
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def blob_sha(self) -> str:
|
|
76
|
+
return self._blob_sha.value
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def blob_url(self) -> str:
|
|
80
|
+
return self._blob_url.value
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
def commit_sha(self) -> str:
|
|
84
|
+
return self._commit_sha.value
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def commit_url(self) -> str:
|
|
88
|
+
return self._commit_url.value
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
def end_column(self) -> int:
|
|
92
|
+
return self._end_column.value
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def end_line(self) -> int:
|
|
96
|
+
return self._end_line.value
|
|
97
|
+
|
|
98
|
+
@property
|
|
99
|
+
def path(self) -> str:
|
|
100
|
+
return self._path.value
|
|
101
|
+
|
|
102
|
+
@property
|
|
103
|
+
def start_column(self) -> int:
|
|
104
|
+
return self._start_column.value
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
def start_line(self) -> int:
|
|
108
|
+
return self._start_line.value
|
|
109
|
+
|
|
110
|
+
def _useAttributes(self, attributes: dict[str, Any]) -> None:
|
|
111
|
+
if "blob_sha" in attributes:
|
|
112
|
+
self._blob_sha = self._makeStringAttribute(attributes["blob_sha"])
|
|
113
|
+
if "blob_url" in attributes:
|
|
114
|
+
self._blob_url = self._makeStringAttribute(attributes["blob_url"])
|
|
115
|
+
if "commit_sha" in attributes:
|
|
116
|
+
self._commit_sha = self._makeStringAttribute(attributes["commit_sha"])
|
|
117
|
+
if "commit_url" in attributes:
|
|
118
|
+
self._commit_url = self._makeStringAttribute(attributes["commit_url"])
|
|
119
|
+
if "end_column" in attributes:
|
|
120
|
+
self._end_column = self._makeIntAttribute(attributes["end_column"])
|
|
121
|
+
if "end_line" in attributes:
|
|
122
|
+
self._end_line = self._makeIntAttribute(attributes["end_line"])
|
|
123
|
+
if "path" in attributes:
|
|
124
|
+
self._path = self._makeStringAttribute(attributes["path"])
|
|
125
|
+
if "start_column" in attributes:
|
|
126
|
+
self._start_column = self._makeIntAttribute(attributes["start_column"])
|
|
127
|
+
if "start_line" in attributes:
|
|
128
|
+
self._start_line = self._makeIntAttribute(attributes["start_line"])
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
# FILE AUTO GENERATED DO NOT TOUCH
|
|
2
|
+
############################ Copyrights and license ############################
|
|
3
|
+
# #
|
|
4
|
+
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
|
5
|
+
# Copyright 2012 Zearin <zearin@gonk.net> #
|
|
6
|
+
# Copyright 2013 AKFish <akfish@gmail.com> #
|
|
7
|
+
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
|
8
|
+
# Copyright 2014 Vincent Jacques <vincent@vincent-jacques.net> #
|
|
9
|
+
# Copyright 2016 Jannis Gebauer <ja.geb@me.com> #
|
|
10
|
+
# Copyright 2016 Peter Buckley <dx-pbuckley@users.noreply.github.com> #
|
|
11
|
+
# Copyright 2018 Wan Liuyang <tsfdye@gmail.com> #
|
|
12
|
+
# Copyright 2018 sfdye <tsfdye@gmail.com> #
|
|
13
|
+
# Copyright 2019 Steve Kowalik <steven@wedontsleep.org> #
|
|
14
|
+
# Copyright 2019 Wan Liuyang <tsfdye@gmail.com> #
|
|
15
|
+
# Copyright 2020 Steve Kowalik <steven@wedontsleep.org> #
|
|
16
|
+
# Copyright 2021 Mark Walker <mark.walker@realbuzz.com> #
|
|
17
|
+
# Copyright 2021 Steve Kowalik <steven@wedontsleep.org> #
|
|
18
|
+
# Copyright 2023 Enrico Minack <github@enrico.minack.dev> #
|
|
19
|
+
# Copyright 2023 Nikolay Yurin <yurinnick93@gmail.com> #
|
|
20
|
+
# Copyright 2023 Trim21 <trim21.me@gmail.com> #
|
|
21
|
+
# Copyright 2024 Caleb McCombs <caleb@mccombalot.net> #
|
|
22
|
+
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
|
|
23
|
+
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
|
|
24
|
+
# Copyright 2025 Enrico Minack <github@enrico.minack.dev> #
|
|
25
|
+
# Copyright 2026 Enrico Minack <github@enrico.minack.dev> #
|
|
26
|
+
# #
|
|
27
|
+
# This file is part of PyGithub. #
|
|
28
|
+
# http://pygithub.readthedocs.io/ #
|
|
29
|
+
# #
|
|
30
|
+
# PyGithub is free software: you can redistribute it and/or modify it under #
|
|
31
|
+
# the terms of the GNU Lesser General Public License as published by the Free #
|
|
32
|
+
# Software Foundation, either version 3 of the License, or (at your option) #
|
|
33
|
+
# any later version. #
|
|
34
|
+
# #
|
|
35
|
+
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
|
36
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
|
37
|
+
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
|
38
|
+
# details. #
|
|
39
|
+
# #
|
|
40
|
+
# You should have received a copy of the GNU Lesser General Public License #
|
|
41
|
+
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
|
42
|
+
# #
|
|
43
|
+
################################################################################
|
|
44
|
+
|
|
45
|
+
from __future__ import annotations
|
|
46
|
+
|
|
47
|
+
from typing import TYPE_CHECKING, Any
|
|
48
|
+
|
|
49
|
+
import githubasyncio.SecurityAndAnalysisFeature
|
|
50
|
+
from githubasyncio.compat import deprecated
|
|
51
|
+
from githubasyncio.GithubObject import Attribute, NonCompletableGithubObject, NotSet
|
|
52
|
+
|
|
53
|
+
if TYPE_CHECKING:
|
|
54
|
+
from githubasyncio.SecurityAndAnalysisFeature import SecurityAndAnalysisFeature
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
class SecurityAndAnalysis(NonCompletableGithubObject):
|
|
58
|
+
"""
|
|
59
|
+
This class represents Security and Analysis Settings.
|
|
60
|
+
|
|
61
|
+
The OpenAPI schema can be found at
|
|
62
|
+
|
|
63
|
+
- /components/schemas/security-and-analysis
|
|
64
|
+
|
|
65
|
+
"""
|
|
66
|
+
|
|
67
|
+
def _initAttributes(self) -> None:
|
|
68
|
+
self._advanced_security: Attribute[SecurityAndAnalysisFeature] = NotSet
|
|
69
|
+
self._code_security: Attribute[SecurityAndAnalysisFeature] = NotSet
|
|
70
|
+
self._dependabot_security_updates: Attribute[SecurityAndAnalysisFeature] = NotSet
|
|
71
|
+
self._secret_scanning: Attribute[SecurityAndAnalysisFeature] = NotSet
|
|
72
|
+
self._secret_scanning_ai_detection: Attribute[SecurityAndAnalysisFeature] = NotSet
|
|
73
|
+
self._secret_scanning_delegated_alert_dismissal: Attribute[SecurityAndAnalysisFeature] = NotSet
|
|
74
|
+
self._secret_scanning_delegated_bypass: Attribute[SecurityAndAnalysisFeature] = NotSet
|
|
75
|
+
self._secret_scanning_delegated_bypass_options: Attribute[dict[str, Any]] = NotSet
|
|
76
|
+
self._secret_scanning_non_provider_patterns: Attribute[SecurityAndAnalysisFeature] = NotSet
|
|
77
|
+
self._secret_scanning_push_protection: Attribute[SecurityAndAnalysisFeature] = NotSet
|
|
78
|
+
self._secret_scanning_validity_checks: Attribute[SecurityAndAnalysisFeature] = NotSet
|
|
79
|
+
|
|
80
|
+
def __repr__(self) -> str:
|
|
81
|
+
repr_attributes = {
|
|
82
|
+
"advanced_security": repr(self._advanced_security.value),
|
|
83
|
+
"code_security": repr(self._code_security.value),
|
|
84
|
+
"dependabot_security_updates": repr(self._dependabot_security_updates.value),
|
|
85
|
+
"secret_scanning": repr(self._secret_scanning.value),
|
|
86
|
+
"secret_scanning_ai_detection": repr(self._secret_scanning_ai_detection.value),
|
|
87
|
+
"secret_scanning_delegated_alert_dismissal": repr(self._secret_scanning_delegated_alert_dismissal.value),
|
|
88
|
+
"secret_scanning_delegated_bypass": repr(self._secret_scanning_delegated_bypass.value),
|
|
89
|
+
"secret_scanning_delegated_bypass_options": repr(self._secret_scanning_delegated_bypass_options.value),
|
|
90
|
+
"secret_scanning_non_provider_patterns": repr(self._secret_scanning_non_provider_patterns.value),
|
|
91
|
+
"secret_scanning_push_protection": repr(self._secret_scanning_push_protection.value),
|
|
92
|
+
"secret_scanning_validity_checks": repr(self._secret_scanning_validity_checks.value),
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return self.get__repr__(repr_attributes)
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
def advanced_security(self) -> SecurityAndAnalysisFeature:
|
|
99
|
+
return self._advanced_security.value
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def code_security(self) -> SecurityAndAnalysisFeature:
|
|
103
|
+
return self._code_security.value
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
def dependabot_security_updates(self) -> SecurityAndAnalysisFeature:
|
|
107
|
+
return self._dependabot_security_updates.value
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def secret_scanning(self) -> SecurityAndAnalysisFeature:
|
|
111
|
+
return self._secret_scanning.value
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
def secret_scanning_ai_detection(self) -> SecurityAndAnalysisFeature:
|
|
115
|
+
return self._secret_scanning_ai_detection.value
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
def secret_scanning_delegated_alert_dismissal(self) -> SecurityAndAnalysisFeature:
|
|
119
|
+
return self._secret_scanning_delegated_alert_dismissal.value
|
|
120
|
+
|
|
121
|
+
@property
|
|
122
|
+
def secret_scanning_delegated_bypass(self) -> SecurityAndAnalysisFeature:
|
|
123
|
+
return self._secret_scanning_delegated_bypass.value
|
|
124
|
+
|
|
125
|
+
@property
|
|
126
|
+
def secret_scanning_delegated_bypass_options(self) -> dict[str, Any]:
|
|
127
|
+
return self._secret_scanning_delegated_bypass_options.value
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
def secret_scanning_non_provider_patterns(self) -> SecurityAndAnalysisFeature:
|
|
131
|
+
return self._secret_scanning_non_provider_patterns.value
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def secret_scanning_push_protection(self) -> SecurityAndAnalysisFeature:
|
|
135
|
+
return self._secret_scanning_push_protection.value
|
|
136
|
+
|
|
137
|
+
@property
|
|
138
|
+
@deprecated("Property secret_scanning_validity_checks is deprecated and will be removed")
|
|
139
|
+
def secret_scanning_validity_checks(self) -> SecurityAndAnalysisFeature:
|
|
140
|
+
return self._secret_scanning_validity_checks.value
|
|
141
|
+
|
|
142
|
+
def _useAttributes(self, attributes: dict[str, Any]) -> None:
|
|
143
|
+
if "advanced_security" in attributes: # pragma no branch
|
|
144
|
+
self._advanced_security = self._makeClassAttribute(
|
|
145
|
+
githubasyncio.SecurityAndAnalysisFeature.SecurityAndAnalysisFeature, attributes["advanced_security"]
|
|
146
|
+
)
|
|
147
|
+
if "code_security" in attributes: # pragma no branch
|
|
148
|
+
self._code_security = self._makeClassAttribute(
|
|
149
|
+
githubasyncio.SecurityAndAnalysisFeature.SecurityAndAnalysisFeature, attributes["code_security"]
|
|
150
|
+
)
|
|
151
|
+
if "dependabot_security_updates" in attributes: # pragma no branch
|
|
152
|
+
self._dependabot_security_updates = self._makeClassAttribute(
|
|
153
|
+
githubasyncio.SecurityAndAnalysisFeature.SecurityAndAnalysisFeature,
|
|
154
|
+
attributes["dependabot_security_updates"],
|
|
155
|
+
)
|
|
156
|
+
if "secret_scanning" in attributes: # pragma no branch
|
|
157
|
+
self._secret_scanning = self._makeClassAttribute(
|
|
158
|
+
githubasyncio.SecurityAndAnalysisFeature.SecurityAndAnalysisFeature, attributes["secret_scanning"]
|
|
159
|
+
)
|
|
160
|
+
if "secret_scanning_ai_detection" in attributes: # pragma no branch
|
|
161
|
+
self._secret_scanning_ai_detection = self._makeClassAttribute(
|
|
162
|
+
githubasyncio.SecurityAndAnalysisFeature.SecurityAndAnalysisFeature,
|
|
163
|
+
attributes["secret_scanning_ai_detection"],
|
|
164
|
+
)
|
|
165
|
+
if "secret_scanning_delegated_alert_dismissal" in attributes: # pragma no branch
|
|
166
|
+
self._secret_scanning_delegated_alert_dismissal = self._makeClassAttribute(
|
|
167
|
+
githubasyncio.SecurityAndAnalysisFeature.SecurityAndAnalysisFeature,
|
|
168
|
+
attributes["secret_scanning_delegated_alert_dismissal"],
|
|
169
|
+
)
|
|
170
|
+
if "secret_scanning_delegated_bypass" in attributes: # pragma no branch
|
|
171
|
+
self._secret_scanning_delegated_bypass = self._makeClassAttribute(
|
|
172
|
+
githubasyncio.SecurityAndAnalysisFeature.SecurityAndAnalysisFeature,
|
|
173
|
+
attributes["secret_scanning_delegated_bypass"],
|
|
174
|
+
)
|
|
175
|
+
if "secret_scanning_delegated_bypass_options" in attributes: # pragma no branch
|
|
176
|
+
self._secret_scanning_delegated_bypass_options = self._makeDictAttribute(
|
|
177
|
+
attributes["secret_scanning_delegated_bypass_options"]
|
|
178
|
+
)
|
|
179
|
+
if "secret_scanning_non_provider_patterns" in attributes: # pragma no branch
|
|
180
|
+
self._secret_scanning_non_provider_patterns = self._makeClassAttribute(
|
|
181
|
+
githubasyncio.SecurityAndAnalysisFeature.SecurityAndAnalysisFeature,
|
|
182
|
+
attributes["secret_scanning_non_provider_patterns"],
|
|
183
|
+
)
|
|
184
|
+
if "secret_scanning_push_protection" in attributes: # pragma no branch
|
|
185
|
+
self._secret_scanning_push_protection = self._makeClassAttribute(
|
|
186
|
+
githubasyncio.SecurityAndAnalysisFeature.SecurityAndAnalysisFeature,
|
|
187
|
+
attributes["secret_scanning_push_protection"],
|
|
188
|
+
)
|