From 8ccfc2e2f50bc4c202632eff35f8a636dafaf012 Mon Sep 17 00:00:00 2001 From: Hector Alfaro Date: Tue, 15 Oct 2024 12:15:07 -0400 Subject: [PATCH] Log updated branch protections for pagelist and run the check on a schedule (#52693) --- .github/branch_protection_settings/main.json | 4 +++- .github/workflows/alert-changed-branch-protections.yml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/branch_protection_settings/main.json b/.github/branch_protection_settings/main.json index ff86b4b242e3..39c2b0491e00 100644 --- a/.github/branch_protection_settings/main.json +++ b/.github/branch_protection_settings/main.json @@ -41,6 +41,7 @@ "workflows", "lint-code", "secret-scanning", + "pagelist" ], "contexts_url": "https://api.github.com/repos/github/docs-internal/branches/main/protection/required_status_checks/contexts", "checks": [ @@ -83,7 +84,8 @@ { "context": "products", "app_id": 15368 }, { "context": "workflows", "app_id": 15368 }, { "context": "lint-code", "app_id": 15368 }, - { "context": "secret-scanning", "app_id": 15368 } + { "context": "secret-scanning", "app_id": 15368 }, + { "context": "pagelist", "app_id": 15368 } ] }, "restrictions": { diff --git a/.github/workflows/alert-changed-branch-protections.yml b/.github/workflows/alert-changed-branch-protections.yml index d075b0df569f..7ce9e2df8c8f 100644 --- a/.github/workflows/alert-changed-branch-protections.yml +++ b/.github/workflows/alert-changed-branch-protections.yml @@ -3,6 +3,8 @@ name: Alert Changed Branch Protections on: branch_protection_rule: workflow_dispatch: + schedule: + - cron: '20 16 * * 3' # Run every Wednesday at 16:30 UTC / 8:30 PST permissions: contents: read