From 65a49a1ebd976273b79ec4e443f77204c38293c3 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Thu, 10 Sep 2026 09:32:10 +1000 Subject: [PATCH 1/3] Add pre-commit hook to validate dependabot.yml https://check-jsonschema.readthedocs.io/en/stable/precommit_usage.html#check-dependabot https://github.com/python-jsonschema/check-jsonschema/commit/12e63946db2c5cfcc9030fac21c3883ba88c6ed8 --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 391681e88c31..989c8fc7db1e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -216,3 +216,10 @@ repos: types: [yaml] files: \.ya?ml$ exclude: ^.*k8s-.*\.ya?ml$|^.github/workflows/.*\.lock\.ya?ml$ + - repo: https://github.com/python-jsonschema/check-jsonschema + rev: 12e63946db2c5cfcc9030fac21c3883ba88c6ed8 # frozen: 0.38.0 + hooks: + - id: check-dependabot + name: validate dependabot.yml + description: ensures the dependabot config file is valid + files: ^\.github/dependabot\.yml$ From d3a5024ba9945dfa35efdc50e02088d71f1fe917 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Fri, 11 Sep 2026 02:30:37 +1000 Subject: [PATCH 2/3] Update regex for dependabot config file validation Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 989c8fc7db1e..8880e4a54cb9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -222,4 +222,4 @@ repos: - id: check-dependabot name: validate dependabot.yml description: ensures the dependabot config file is valid - files: ^\.github/dependabot\.yml$ + files: ^\.github/dependabot\.ya?ml$ From 2119d8d06da049cabd9d63443754b46f051bd167 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Fri, 11 Sep 2026 02:39:05 +1000 Subject: [PATCH 3/3] Rename hook for validating dependabot config Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8880e4a54cb9..3c573ec8da27 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -220,6 +220,6 @@ repos: rev: 12e63946db2c5cfcc9030fac21c3883ba88c6ed8 # frozen: 0.38.0 hooks: - id: check-dependabot - name: validate dependabot.yml + name: validate dependabot config description: ensures the dependabot config file is valid files: ^\.github/dependabot\.ya?ml$