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
+2
Original file line number
Diff line number
Diff line change
@@ -2083,6 +2083,8 @@ public struct Client: APIProtocol {
2083
2083
///
2084
2084
/// OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
2085
2085
///
2086
+
/// This endpoint is limited to 1,000 requests per hour for each user or app installation calling it.
Copy file name to clipboardExpand all lines: Sources/code-scanning/Types.swift
+6
Original file line number
Diff line number
Diff line change
@@ -252,6 +252,8 @@ public protocol APIProtocol: Sendable {
252
252
///
253
253
/// OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
254
254
///
255
+
/// This endpoint is limited to 1,000 requests per hour for each user or app installation calling it.
/// OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
620
622
///
623
+
/// This endpoint is limited to 1,000 requests per hour for each user or app installation calling it.
/// OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.
6279
6283
///
6284
+
/// This endpoint is limited to 1,000 requests per hour for each user or app installation calling it.
Copy file name to clipboardExpand all lines: Sources/repos/Types.swift
+149
Original file line number
Diff line number
Diff line change
@@ -12034,6 +12034,108 @@ public enum Components {
12034
12034
case parameters
12035
12035
}
12036
12036
}
12037
+
/// A tool that must provide code scanning results for this rule to pass.
12038
+
///
12039
+
/// - Remark: Generated from `#/components/schemas/repository-rule-params-code-scanning-tool`.
12040
+
public struct repository_hyphen_rule_hyphen_params_hyphen_code_hyphen_scanning_hyphen_tool: Codable, Hashable, Sendable {
12041
+
/// The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."
12042
+
///
12043
+
/// - Remark: Generated from `#/components/schemas/repository-rule-params-code-scanning-tool/alerts_threshold`.
12044
+
@frozen public enum alerts_thresholdPayload: String, Codable, Hashable, Sendable {
12045
+
case none = "none"
12046
+
case errors = "errors"
12047
+
case errors_and_warnings = "errors_and_warnings"
12048
+
case all = "all"
12049
+
}
12050
+
/// The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."
12051
+
///
12052
+
/// - Remark: Generated from `#/components/schemas/repository-rule-params-code-scanning-tool/alerts_threshold`.
12053
+
public var alerts_threshold: Components.Schemas.repository_hyphen_rule_hyphen_params_hyphen_code_hyphen_scanning_hyphen_tool.alerts_thresholdPayload
12054
+
/// The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."
12055
+
///
12056
+
/// - Remark: Generated from `#/components/schemas/repository-rule-params-code-scanning-tool/security_alerts_threshold`.
12057
+
@frozen public enum security_alerts_thresholdPayload: String, Codable, Hashable, Sendable {
12058
+
case none = "none"
12059
+
case critical = "critical"
12060
+
case high_or_higher = "high_or_higher"
12061
+
case medium_or_higher = "medium_or_higher"
12062
+
case all = "all"
12063
+
}
12064
+
/// The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."
12065
+
///
12066
+
/// - Remark: Generated from `#/components/schemas/repository-rule-params-code-scanning-tool/security_alerts_threshold`.
12067
+
public var security_alerts_threshold: Components.Schemas.repository_hyphen_rule_hyphen_params_hyphen_code_hyphen_scanning_hyphen_tool.security_alerts_thresholdPayload
12068
+
/// The name of a code scanning tool
12069
+
///
12070
+
/// - Remark: Generated from `#/components/schemas/repository-rule-params-code-scanning-tool/tool`.
12071
+
public var tool: Swift.String
12072
+
/// Creates a new `repository_hyphen_rule_hyphen_params_hyphen_code_hyphen_scanning_hyphen_tool`.
12073
+
///
12074
+
/// - Parameters:
12075
+
/// - alerts_threshold: The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."
12076
+
/// - security_alerts_threshold: The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."
/// Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.
12094
+
///
12095
+
/// - Remark: Generated from `#/components/schemas/repository-rule-code-scanning`.
12096
+
public struct repository_hyphen_rule_hyphen_code_hyphen_scanning: Codable, Hashable, Sendable {
12097
+
/// - Remark: Generated from `#/components/schemas/repository-rule-code-scanning/type`.
12098
+
@frozen public enum _typePayload: String, Codable, Hashable, Sendable {
12099
+
case code_scanning = "code_scanning"
12100
+
}
12101
+
/// - Remark: Generated from `#/components/schemas/repository-rule-code-scanning/type`.
12102
+
public var _type: Components.Schemas.repository_hyphen_rule_hyphen_code_hyphen_scanning._typePayload
12103
+
/// - Remark: Generated from `#/components/schemas/repository-rule-code-scanning/parameters`.
12104
+
public struct parametersPayload: Codable, Hashable, Sendable {
12105
+
/// Tools that must provide code scanning results for this rule to pass.
12106
+
///
12107
+
/// - Remark: Generated from `#/components/schemas/repository-rule-code-scanning/parameters/code_scanning_tools`.
12108
+
public var code_scanning_tools: [Components.Schemas.repository_hyphen_rule_hyphen_params_hyphen_code_hyphen_scanning_hyphen_tool]
12109
+
/// Creates a new `parametersPayload`.
12110
+
///
12111
+
/// - Parameters:
12112
+
/// - code_scanning_tools: Tools that must provide code scanning results for this rule to pass.
12113
+
public init(code_scanning_tools: [Components.Schemas.repository_hyphen_rule_hyphen_params_hyphen_code_hyphen_scanning_hyphen_tool]) {
12114
+
self.code_scanning_tools = code_scanning_tools
12115
+
}
12116
+
public enum CodingKeys: String, CodingKey {
12117
+
case code_scanning_tools
12118
+
}
12119
+
}
12120
+
/// - Remark: Generated from `#/components/schemas/repository-rule-code-scanning/parameters`.
12121
+
public var parameters: Components.Schemas.repository_hyphen_rule_hyphen_code_hyphen_scanning.parametersPayload?
12122
+
/// Creates a new `repository_hyphen_rule_hyphen_code_hyphen_scanning`.
0 commit comments