From 55c2a99b59ff5b6cffcdc8579a4099f0173b6f95 Mon Sep 17 00:00:00 2001 From: Scott Leggett Date: Thu, 23 May 2024 13:44:25 +0800 Subject: [PATCH] feat: update rules to the new format --- protect-default-branch.json | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/protect-default-branch.json b/protect-default-branch.json index ed1c909..e44dbae 100644 --- a/protect-default-branch.json +++ b/protect-default-branch.json @@ -38,10 +38,6 @@ "parameters": { "strict_required_status_checks_policy": true, "required_status_checks": [ - { - "context": "CodeQL", - "integration_id": 57789 - }, { "context": "lint-actions", "integration_id": 15368 @@ -64,6 +60,18 @@ } ] } + }, + { + "type": "code_scanning", + "parameters": { + "code_scanning_tools": [ + { + "tool": "CodeQL", + "security_alerts_threshold": "medium_or_higher", + "alerts_threshold": "errors_and_warnings" + } + ] + } } ], "bypass_actors": [