From 505b1cb5882097733ab081427e6499c228e8e001 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Tue, 31 Mar 2026 21:35:13 +1000 Subject: [PATCH] [CI] Add manual pre-commit hook to validate the dependabot config https://www.npmjs.com/package/@bugron/validate-dependabot-yaml --- .pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cf6f8d39027d..2d1e2ec8a60b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,6 +31,14 @@ repos: - id: doctoc name: Add TOC for Markdown files files: ^CONTRIBUTING\.md$|^INSTALL\.md$|^README\.md$ + - repo: local + hooks: + - id: validate-dependabot-yml + name: Validate dependabot.yml + entry: npx @bugron/validate-dependabot-yaml@0.3.3 + language: system + files: ^\.github/dependabot\.yml$ + stages: [manual] - repo: https://github.com/oxipng/oxipng rev: v9.1.5 hooks: