Skip to content

Commit d10f49b

Browse files
committed
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.
1 parent 17aebe4 commit d10f49b

5 files changed

Lines changed: 13 additions & 3 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ updates:
99
directory: /
1010
schedule:
1111
interval: "weekly"
12+
cooldown:
13+
default-days: 7
1214
groups:
1315
actions:
1416
patterns:

‎.github/zizmor.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
rules:
2+
unpinned-uses:
3+
config:
4+
policies:
5+
actions/*: ref-pin
6+
github/*: ref-pin
7+
dependabot/*: ref-pin
8+
cpp-linter/*: any

‎docs/ai-coding-agents.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ checks on the staged files at each commit, on the agent's machine and on yours:
247247
```yaml title=".pre-commit-config.yaml"
248248
repos:
249249
- repo: https://github.com/cpp-linter/cpp-linter-hooks
250-
rev: v1.7.0
250+
rev: v1.8.1
251251
hooks:
252252
- id: clang-format
253253
args: [--style=file, --version=21]

‎docs/getting-started.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pip-install the clang-format and clang-tidy version you pin:
7171
```yaml title=".pre-commit-config.yaml"
7272
repos:
7373
- repo: https://github.com/cpp-linter/cpp-linter-hooks
74-
rev: v1.7.0
74+
rev: v1.8.1
7575
hooks:
7676
- id: clang-format
7777
args: [--style=file, --version=21]

‎docs/why-cpp-linter.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ annotations only; if most of yours come from forks, stay with the split workflow
164164

165165
```yaml title="After"
166166
- repo: https://github.com/cpp-linter/cpp-linter-hooks
167-
rev: v1.7.0
167+
rev: v1.8.1
168168
hooks:
169169
- id: clang-format
170170
args: [--style=file, --version=21]

0 commit comments

Comments
 (0)