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/code-scanning/Client.swift
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1065,6 +1065,7 @@ public struct Client: APIProtocol {
1065
1065
/// Get a code scanning analysis for a repository
1066
1066
///
1067
1067
/// Gets a specified code scanning analysis for a repository.
1068
+
///
1068
1069
/// You must use an access token with the `security_events` scope to use this endpoint with private repositories,
1069
1070
/// the `public_repo` scope also grants permission to read security events on public repositories only.
1070
1071
///
@@ -1078,10 +1079,9 @@ public struct Client: APIProtocol {
1078
1079
/// For very old analyses this data is not available,
1079
1080
/// and `0` is returned in this field.
1080
1081
///
1081
-
/// If you use the Accept header `application/sarif+json`,
1082
-
/// the response contains the analysis data that was uploaded.
1083
-
/// This is formatted as
1084
-
/// [SARIF version 2.1.0](https://docs.oasis-open.org/sarif/sarif/v2.1.0/cs01/sarif-v2.1.0-cs01.html).
1082
+
/// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
1083
+
///
1084
+
/// - **`application/sarif+json`**: Instead of returning a summary of the analysis, this endpoint returns a subset of the analysis data that was uploaded. The data is formatted as [SARIF version 2.1.0](https://docs.oasis-open.org/sarif/sarif/v2.1.0/cs01/sarif-v2.1.0-cs01.html). It also returns additional data such as the `github/alertNumber` and `github/alertUrl` properties.
Copy file name to clipboardExpand all lines: Sources/code-scanning/Types.swift
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,7 @@ public protocol APIProtocol: Sendable {
83
83
/// Get a code scanning analysis for a repository
84
84
///
85
85
/// Gets a specified code scanning analysis for a repository.
86
+
///
86
87
/// You must use an access token with the `security_events` scope to use this endpoint with private repositories,
87
88
/// the `public_repo` scope also grants permission to read security events on public repositories only.
88
89
///
@@ -96,10 +97,9 @@ public protocol APIProtocol: Sendable {
96
97
/// For very old analyses this data is not available,
97
98
/// and `0` is returned in this field.
98
99
///
99
-
/// If you use the Accept header `application/sarif+json`,
100
-
/// the response contains the analysis data that was uploaded.
101
-
/// This is formatted as
102
-
/// [SARIF version 2.1.0](https://docs.oasis-open.org/sarif/sarif/v2.1.0/cs01/sarif-v2.1.0-cs01.html).
100
+
/// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
101
+
///
102
+
/// - **`application/sarif+json`**: Instead of returning a summary of the analysis, this endpoint returns a subset of the analysis data that was uploaded. The data is formatted as [SARIF version 2.1.0](https://docs.oasis-open.org/sarif/sarif/v2.1.0/cs01/sarif-v2.1.0-cs01.html). It also returns additional data such as the `github/alertNumber` and `github/alertUrl` properties.
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/get(code-scanning/get-analysis)`.
@@ -396,6 +396,7 @@ extension APIProtocol {
396
396
/// Get a code scanning analysis for a repository
397
397
///
398
398
/// Gets a specified code scanning analysis for a repository.
399
+
///
399
400
/// You must use an access token with the `security_events` scope to use this endpoint with private repositories,
400
401
/// the `public_repo` scope also grants permission to read security events on public repositories only.
401
402
///
@@ -409,10 +410,9 @@ extension APIProtocol {
409
410
/// For very old analyses this data is not available,
410
411
/// and `0` is returned in this field.
411
412
///
412
-
/// If you use the Accept header `application/sarif+json`,
413
-
/// the response contains the analysis data that was uploaded.
414
-
/// This is formatted as
415
-
/// [SARIF version 2.1.0](https://docs.oasis-open.org/sarif/sarif/v2.1.0/cs01/sarif-v2.1.0-cs01.html).
413
+
/// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
414
+
///
415
+
/// - **`application/sarif+json`**: Instead of returning a summary of the analysis, this endpoint returns a subset of the analysis data that was uploaded. The data is formatted as [SARIF version 2.1.0](https://docs.oasis-open.org/sarif/sarif/v2.1.0/cs01/sarif-v2.1.0-cs01.html). It also returns additional data such as the `github/alertNumber` and `github/alertUrl` properties.
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}/get(code-scanning/get-analysis)`.
@@ -4684,6 +4684,7 @@ public enum Operations {
4684
4684
/// Get a code scanning analysis for a repository
4685
4685
///
4686
4686
/// Gets a specified code scanning analysis for a repository.
4687
+
///
4687
4688
/// You must use an access token with the `security_events` scope to use this endpoint with private repositories,
4688
4689
/// the `public_repo` scope also grants permission to read security events on public repositories only.
4689
4690
///
@@ -4697,10 +4698,9 @@ public enum Operations {
4697
4698
/// For very old analyses this data is not available,
4698
4699
/// and `0` is returned in this field.
4699
4700
///
4700
-
/// If you use the Accept header `application/sarif+json`,
4701
-
/// the response contains the analysis data that was uploaded.
4702
-
/// This is formatted as
4703
-
/// [SARIF version 2.1.0](https://docs.oasis-open.org/sarif/sarif/v2.1.0/cs01/sarif-v2.1.0-cs01.html).
4701
+
/// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
4702
+
///
4703
+
/// - **`application/sarif+json`**: Instead of returning a summary of the analysis, this endpoint returns a subset of the analysis data that was uploaded. The data is formatted as [SARIF version 2.1.0](https://docs.oasis-open.org/sarif/sarif/v2.1.0/cs01/sarif-v2.1.0-cs01.html). It also returns additional data such as the `github/alertNumber` and `github/alertUrl` properties.
0 commit comments