diff --git a/src/graphql/data/fpt/changelog.json b/src/graphql/data/fpt/changelog.json index fd5a1da902..7966b75345 100644 --- a/src/graphql/data/fpt/changelog.json +++ b/src/graphql/data/fpt/changelog.json @@ -1,4 +1,23 @@ [ + { + "schemaChanges": [ + { + "title": "The GraphQL schema includes these changes:", + "changes": [ + "

Type CodeScanningParameters was added

", + "

Type CodeScanningParametersInput was added

", + "

Type CodeScanningTool was added

", + "

Type CodeScanningToolInput was added

", + "

Enum value 'CODE_SCANNINGwas added to enumRepositoryRuleType'

", + "

Member CodeScanningParameters was added to Union type RuleParameters

", + "

Input field codeScanning of type CodeScanningParametersInput was added to input object type RuleParametersInput

" + ] + } + ], + "previewChanges": [], + "upcomingChanges": [], + "date": "2024-05-02" + }, { "schemaChanges": [ { diff --git a/src/graphql/data/fpt/schema.docs.graphql b/src/graphql/data/fpt/schema.docs.graphql index c29457d0f0..1fd166647d 100644 --- a/src/graphql/data/fpt/schema.docs.graphql +++ b/src/graphql/data/fpt/schema.docs.graphql @@ -4326,6 +4326,76 @@ type CodeOfConduct implements Node { url: URI } +""" +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. +""" +type CodeScanningParameters { + """ + Tools that must provide code scanning results for this rule to pass. + """ + codeScanningTools: [CodeScanningTool!]! +} + +""" +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. +""" +input CodeScanningParametersInput { + """ + Tools that must provide code scanning results for this rule to pass. + """ + codeScanningTools: [CodeScanningToolInput!]! +} + +""" +A tool that must provide code scanning results for this rule to pass. +""" +type CodeScanningTool { + """ + 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](${externalDocsUrl}/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." + """ + alertsThreshold: String! + + """ + 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](${externalDocsUrl}/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." + """ + securityAlertsThreshold: String! + + """ + The name of a code scanning tool + """ + tool: String! +} + +""" +A tool that must provide code scanning results for this rule to pass. +""" +input CodeScanningToolInput { + """ + 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](${externalDocsUrl}/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." + """ + alertsThreshold: String! + + """ + 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](${externalDocsUrl}/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." + """ + securityAlertsThreshold: String! + + """ + The name of a code scanning tool + """ + tool: String! +} + """ Collaborators affiliation level with a subject. """ @@ -46404,6 +46474,13 @@ enum RepositoryRuleType { """ BRANCH_NAME_PATTERN + """ + 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. + """ + CODE_SCANNING + """ Committer email pattern """ @@ -48162,6 +48239,7 @@ Types which can be parameters for `RepositoryRule` objects. """ union RuleParameters = BranchNamePatternParameters + | CodeScanningParameters | CommitAuthorEmailPatternParameters | CommitMessagePatternParameters | CommitterEmailPatternParameters @@ -48185,6 +48263,11 @@ input RuleParametersInput { """ branchNamePattern: BranchNamePatternParametersInput + """ + Parameters used for the `code_scanning` rule type + """ + codeScanning: CodeScanningParametersInput + """ Parameters used for the `commit_author_email_pattern` rule type """ diff --git a/src/graphql/data/fpt/schema.json b/src/graphql/data/fpt/schema.json index 84333c356a..a504e9df6c 100644 --- a/src/graphql/data/fpt/schema.json +++ b/src/graphql/data/fpt/schema.json @@ -12898,6 +12898,56 @@ } ] }, + { + "name": "CodeScanningParameters", + "kind": "objects", + "id": "codescanningparameters", + "href": "/graphql/reference/objects#codescanningparameters", + "description": "

Choose which tools must provide code scanning results before the reference is\nupdated. When configured, code scanning must be enabled and have results for\nboth the commit and the reference being updated.

", + "fields": [ + { + "name": "codeScanningTools", + "description": "

Tools that must provide code scanning results for this rule to pass.

", + "type": "[CodeScanningTool!]!", + "id": "codescanningtool", + "kind": "objects", + "href": "/graphql/reference/objects#codescanningtool" + } + ] + }, + { + "name": "CodeScanningTool", + "kind": "objects", + "id": "codescanningtool", + "href": "/graphql/reference/objects#codescanningtool", + "description": "

A tool that must provide code scanning results for this rule to pass.

", + "fields": [ + { + "name": "alertsThreshold", + "description": "

The severity level at which code scanning results that raise alerts block a\nreference update. For more information on alert severity levels, see \"About code scanning alerts.\".

", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "securityAlertsThreshold", + "description": "

The severity level at which code scanning results that raise security alerts\nblock a reference update. For more information on security severity levels,\nsee \"About code scanning alerts.\".

", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "tool", + "description": "

The name of a code scanning tool.

", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + } + ] + }, { "name": "CommentDeletedEvent", "kind": "objects", @@ -85686,6 +85736,10 @@ "name": "BRANCH_NAME_PATTERN", "description": "

Branch name pattern.

" }, + { + "name": "CODE_SCANNING", + "description": "

Choose which tools must provide code scanning results before the reference is\nupdated. When configured, code scanning must be enabled and have results for\nboth the commit and the reference being updated.

" + }, { "name": "COMMITTER_EMAIL_PATTERN", "description": "

Committer email pattern.

" @@ -89726,6 +89780,11 @@ "id": "branchnamepatternparameters", "href": "/graphql/reference/objects#branchnamepatternparameters" }, + { + "name": "CodeScanningParameters", + "id": "codescanningparameters", + "href": "/graphql/reference/objects#codescanningparameters" + }, { "name": "CommitAuthorEmailPatternParameters", "id": "commitauthoremailpatternparameters", @@ -91883,6 +91942,56 @@ } ] }, + { + "name": "CodeScanningParametersInput", + "kind": "inputObjects", + "id": "codescanningparametersinput", + "href": "/graphql/reference/input-objects#codescanningparametersinput", + "description": "

Choose which tools must provide code scanning results before the reference is\nupdated. When configured, code scanning must be enabled and have results for\nboth the commit and the reference being updated.

", + "inputFields": [ + { + "name": "codeScanningTools", + "description": "

Tools that must provide code scanning results for this rule to pass.

", + "type": "[CodeScanningToolInput!]!", + "id": "codescanningtoolinput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#codescanningtoolinput" + } + ] + }, + { + "name": "CodeScanningToolInput", + "kind": "inputObjects", + "id": "codescanningtoolinput", + "href": "/graphql/reference/input-objects#codescanningtoolinput", + "description": "

A tool that must provide code scanning results for this rule to pass.

", + "inputFields": [ + { + "name": "alertsThreshold", + "description": "

The severity level at which code scanning results that raise alerts block a\nreference update. For more information on alert severity levels, see \"About code scanning alerts.\".

", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "securityAlertsThreshold", + "description": "

The severity level at which code scanning results that raise security alerts\nblock a reference update. For more information on security severity levels,\nsee \"About code scanning alerts.\".

", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "tool", + "description": "

The name of a code scanning tool.

", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + } + ] + }, { "name": "CommitAuthor", "kind": "inputObjects", @@ -98676,6 +98785,14 @@ "kind": "input-objects", "href": "/graphql/reference/input-objects#branchnamepatternparametersinput" }, + { + "name": "codeScanning", + "description": "

Parameters used for the code_scanning rule type.

", + "type": "CodeScanningParametersInput", + "id": "codescanningparametersinput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#codescanningparametersinput" + }, { "name": "commitAuthorEmailPattern", "description": "

Parameters used for the commit_author_email_pattern rule type.

", diff --git a/src/graphql/data/ghec/schema.docs.graphql b/src/graphql/data/ghec/schema.docs.graphql index c29457d0f0..1fd166647d 100644 --- a/src/graphql/data/ghec/schema.docs.graphql +++ b/src/graphql/data/ghec/schema.docs.graphql @@ -4326,6 +4326,76 @@ type CodeOfConduct implements Node { url: URI } +""" +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. +""" +type CodeScanningParameters { + """ + Tools that must provide code scanning results for this rule to pass. + """ + codeScanningTools: [CodeScanningTool!]! +} + +""" +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. +""" +input CodeScanningParametersInput { + """ + Tools that must provide code scanning results for this rule to pass. + """ + codeScanningTools: [CodeScanningToolInput!]! +} + +""" +A tool that must provide code scanning results for this rule to pass. +""" +type CodeScanningTool { + """ + 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](${externalDocsUrl}/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." + """ + alertsThreshold: String! + + """ + 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](${externalDocsUrl}/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." + """ + securityAlertsThreshold: String! + + """ + The name of a code scanning tool + """ + tool: String! +} + +""" +A tool that must provide code scanning results for this rule to pass. +""" +input CodeScanningToolInput { + """ + 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](${externalDocsUrl}/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." + """ + alertsThreshold: String! + + """ + 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](${externalDocsUrl}/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." + """ + securityAlertsThreshold: String! + + """ + The name of a code scanning tool + """ + tool: String! +} + """ Collaborators affiliation level with a subject. """ @@ -46404,6 +46474,13 @@ enum RepositoryRuleType { """ BRANCH_NAME_PATTERN + """ + 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. + """ + CODE_SCANNING + """ Committer email pattern """ @@ -48162,6 +48239,7 @@ Types which can be parameters for `RepositoryRule` objects. """ union RuleParameters = BranchNamePatternParameters + | CodeScanningParameters | CommitAuthorEmailPatternParameters | CommitMessagePatternParameters | CommitterEmailPatternParameters @@ -48185,6 +48263,11 @@ input RuleParametersInput { """ branchNamePattern: BranchNamePatternParametersInput + """ + Parameters used for the `code_scanning` rule type + """ + codeScanning: CodeScanningParametersInput + """ Parameters used for the `commit_author_email_pattern` rule type """ diff --git a/src/graphql/data/ghec/schema.json b/src/graphql/data/ghec/schema.json index 84333c356a..a504e9df6c 100644 --- a/src/graphql/data/ghec/schema.json +++ b/src/graphql/data/ghec/schema.json @@ -12898,6 +12898,56 @@ } ] }, + { + "name": "CodeScanningParameters", + "kind": "objects", + "id": "codescanningparameters", + "href": "/graphql/reference/objects#codescanningparameters", + "description": "

Choose which tools must provide code scanning results before the reference is\nupdated. When configured, code scanning must be enabled and have results for\nboth the commit and the reference being updated.

", + "fields": [ + { + "name": "codeScanningTools", + "description": "

Tools that must provide code scanning results for this rule to pass.

", + "type": "[CodeScanningTool!]!", + "id": "codescanningtool", + "kind": "objects", + "href": "/graphql/reference/objects#codescanningtool" + } + ] + }, + { + "name": "CodeScanningTool", + "kind": "objects", + "id": "codescanningtool", + "href": "/graphql/reference/objects#codescanningtool", + "description": "

A tool that must provide code scanning results for this rule to pass.

", + "fields": [ + { + "name": "alertsThreshold", + "description": "

The severity level at which code scanning results that raise alerts block a\nreference update. For more information on alert severity levels, see \"About code scanning alerts.\".

", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "securityAlertsThreshold", + "description": "

The severity level at which code scanning results that raise security alerts\nblock a reference update. For more information on security severity levels,\nsee \"About code scanning alerts.\".

", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "tool", + "description": "

The name of a code scanning tool.

", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + } + ] + }, { "name": "CommentDeletedEvent", "kind": "objects", @@ -85686,6 +85736,10 @@ "name": "BRANCH_NAME_PATTERN", "description": "

Branch name pattern.

" }, + { + "name": "CODE_SCANNING", + "description": "

Choose which tools must provide code scanning results before the reference is\nupdated. When configured, code scanning must be enabled and have results for\nboth the commit and the reference being updated.

" + }, { "name": "COMMITTER_EMAIL_PATTERN", "description": "

Committer email pattern.

" @@ -89726,6 +89780,11 @@ "id": "branchnamepatternparameters", "href": "/graphql/reference/objects#branchnamepatternparameters" }, + { + "name": "CodeScanningParameters", + "id": "codescanningparameters", + "href": "/graphql/reference/objects#codescanningparameters" + }, { "name": "CommitAuthorEmailPatternParameters", "id": "commitauthoremailpatternparameters", @@ -91883,6 +91942,56 @@ } ] }, + { + "name": "CodeScanningParametersInput", + "kind": "inputObjects", + "id": "codescanningparametersinput", + "href": "/graphql/reference/input-objects#codescanningparametersinput", + "description": "

Choose which tools must provide code scanning results before the reference is\nupdated. When configured, code scanning must be enabled and have results for\nboth the commit and the reference being updated.

", + "inputFields": [ + { + "name": "codeScanningTools", + "description": "

Tools that must provide code scanning results for this rule to pass.

", + "type": "[CodeScanningToolInput!]!", + "id": "codescanningtoolinput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#codescanningtoolinput" + } + ] + }, + { + "name": "CodeScanningToolInput", + "kind": "inputObjects", + "id": "codescanningtoolinput", + "href": "/graphql/reference/input-objects#codescanningtoolinput", + "description": "

A tool that must provide code scanning results for this rule to pass.

", + "inputFields": [ + { + "name": "alertsThreshold", + "description": "

The severity level at which code scanning results that raise alerts block a\nreference update. For more information on alert severity levels, see \"About code scanning alerts.\".

", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "securityAlertsThreshold", + "description": "

The severity level at which code scanning results that raise security alerts\nblock a reference update. For more information on security severity levels,\nsee \"About code scanning alerts.\".

", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "tool", + "description": "

The name of a code scanning tool.

", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + } + ] + }, { "name": "CommitAuthor", "kind": "inputObjects", @@ -98676,6 +98785,14 @@ "kind": "input-objects", "href": "/graphql/reference/input-objects#branchnamepatternparametersinput" }, + { + "name": "codeScanning", + "description": "

Parameters used for the code_scanning rule type.

", + "type": "CodeScanningParametersInput", + "id": "codescanningparametersinput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#codescanningparametersinput" + }, { "name": "commitAuthorEmailPattern", "description": "

Parameters used for the commit_author_email_pattern rule type.

",