From 4ce96142f9369c9485e862b9ed1da0139a25a3da Mon Sep 17 00:00:00 2001 From: Cristian Magherusan-Stanciu Date: Fri, 16 Oct 2026 19:37:17 +0200 Subject: [PATCH] chore(pre-commit): pin hook revisions to SHAs and lint workflows with actionlint Pin pre-commit-hooks v6.0.0 and markdownlint-cli v0.47.0 to the commit SHAs their tags resolve to. The actionlint hook (digest-pinned image) is already present, so no hook is added. Align the golangci gocyclo threshold with the enforcing gates (-over 10); no new findings. Refs #1594 Co-Authored-By: Claude Opus 5.5 --- .golangci.yml | 2 +- .pre-commit-config.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 011559420..8362af4b2 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -40,7 +40,7 @@ linters: hugeParam: sizeThreshold: 1024 gocyclo: - min-complexity: 15 + min-complexity: 10 gosec: excludes: - G104 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2cdd35e62..87dd11eab 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,7 +30,7 @@ repos: # General file checks - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v6.0.0 + rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # v6.0.0 hooks: - id: trailing-whitespace name: Trim trailing whitespace @@ -127,7 +127,7 @@ repos: # Markdown linting - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.47.0 + rev: 76b3d32d3f4b965e1d6425253c59407420ae2c43 # v0.47.0 hooks: - id: markdownlint name: Lint Markdown files