You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/secret-scanning/Client.swift
+3-206Lines changed: 3 additions & 206 deletions
Original file line number
Diff line number
Diff line change
@@ -38,212 +38,6 @@ public struct Client: APIProtocol {
38
38
privatevarconverter:Converter{
39
39
client.converter
40
40
}
41
-
/// List secret scanning alerts for an enterprise
42
-
///
43
-
/// Lists secret scanning alerts for eligible repositories in an enterprise, from newest to oldest.
44
-
///
45
-
/// Alerts are only returned for organizations in the enterprise for which the authenticated user is an organization owner or a [security manager](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization).
46
-
///
47
-
/// The authenticated user must be a member of the enterprise in order to use this endpoint.
48
-
///
49
-
/// OAuth app tokens and personal access tokens (classic) need the `repo` scope or `security_events` scope to use this endpoint.
preconditionFailure("bestContentType chose an invalid content type.")
233
-
}
234
-
return.serviceUnavailable(.init(body: body))
235
-
default:
236
-
return.undocumented(
237
-
statusCode: response.status.code,
238
-
.init(
239
-
headerFields: response.headerFields,
240
-
body: responseBody
241
-
)
242
-
)
243
-
}
244
-
}
245
-
)
246
-
}
247
41
/// List secret scanning alerts for an organization
248
42
///
249
43
/// Lists secret scanning alerts for eligible repositories in an organization, from newest to oldest.
@@ -1379,6 +1173,9 @@ public struct Client: APIProtocol {
1379
1173
///
1380
1174
/// Lists the latest default incremental and backfill scans by type for a repository. Scans from Copilot Secret Scanning are not included.
1381
1175
///
1176
+
/// > [!NOTE]
1177
+
/// > This endpoint requires [GitHub Advanced Security](https://docs.github.com/get-started/learning-about-github/about-github-advanced-security)."
1178
+
///
1382
1179
/// OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.
0 commit comments