From d10f49b1ed47ea7a332f131b6d1928ba0b38e098 Mon Sep 17 00:00:00 2001 From: Xianpeng Shen <3353385+shenxianpeng@users.noreply.github.com> Date: Sat, 31 Oct 2026 19:58:25 +0000 Subject: [PATCH] docs: use cpp-linter-hooks v1.8.1 in the examples The getting-started, AI coding agents and why-cpp-linter pages pinned rev: v1.7.0; v1.8.1 is the current release. Blog posts keep the version they were written with. Also add the org zizmor config and a 7-day Dependabot cooldown, both flagged by zizmor. --- .github/dependabot.yml | 2 ++ .github/zizmor.yml | 8 ++++++++ docs/ai-coding-agents.md | 2 +- docs/getting-started.md | 2 +- docs/why-cpp-linter.md | 2 +- 5 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 .github/zizmor.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 203f271..e521b3f 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,6 +9,8 @@ updates: directory: / schedule: interval: "weekly" + cooldown: + default-days: 7 groups: actions: patterns: diff --git a/.github/zizmor.yml b/.github/zizmor.yml new file mode 100644 index 0000000..bf8fd1a --- /dev/null +++ b/.github/zizmor.yml @@ -0,0 +1,8 @@ +rules: + unpinned-uses: + config: + policies: + actions/*: ref-pin + github/*: ref-pin + dependabot/*: ref-pin + cpp-linter/*: any diff --git a/docs/ai-coding-agents.md b/docs/ai-coding-agents.md index fdab9c9..7244807 100644 --- a/docs/ai-coding-agents.md +++ b/docs/ai-coding-agents.md @@ -247,7 +247,7 @@ checks on the staged files at each commit, on the agent's machine and on yours: ```yaml title=".pre-commit-config.yaml" repos: - repo: https://github.com/cpp-linter/cpp-linter-hooks - rev: v1.7.0 + rev: v1.8.1 hooks: - id: clang-format args: [--style=file, --version=21] diff --git a/docs/getting-started.md b/docs/getting-started.md index f431540..78f7458 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -71,7 +71,7 @@ pip-install the clang-format and clang-tidy version you pin: ```yaml title=".pre-commit-config.yaml" repos: - repo: https://github.com/cpp-linter/cpp-linter-hooks - rev: v1.7.0 + rev: v1.8.1 hooks: - id: clang-format args: [--style=file, --version=21] diff --git a/docs/why-cpp-linter.md b/docs/why-cpp-linter.md index 1fc49a5..6dbc652 100644 --- a/docs/why-cpp-linter.md +++ b/docs/why-cpp-linter.md @@ -164,7 +164,7 @@ annotations only; if most of yours come from forks, stay with the split workflow ```yaml title="After" - repo: https://github.com/cpp-linter/cpp-linter-hooks - rev: v1.7.0 + rev: v1.8.1 hooks: - id: clang-format args: [--style=file, --version=21]