From 160d578169c47d3c887a08c651e55217f83b2b22 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 09:27:52 +0000 Subject: [PATCH 1/2] ci(deps): bump actions/github-script in the github-actions group Bumps the github-actions group with 1 update: [actions/github-script](https://github.com/actions/github-script). Updates `actions/github-script` from 8 to 9 - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v8...v9) --- updated-dependencies: - dependency-name: actions/github-script dependency-version: '9' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage-comment.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage-comment.yaml b/.github/workflows/coverage-comment.yaml index 0332610d..829dbda4 100644 --- a/.github/workflows/coverage-comment.yaml +++ b/.github/workflows/coverage-comment.yaml @@ -17,7 +17,7 @@ jobs: steps: - name: Download coverage artifacts - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const artifacts = await github.rest.actions.listWorkflowRunArtifacts({ @@ -64,7 +64,7 @@ jobs: - name: Get PR number id: pr - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const { data: pullRequests } = await github.rest.pulls.list({ @@ -83,7 +83,7 @@ jobs: - name: Comment PR with coverage if: steps.pr.outputs.result != 'null' - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const fs = require('fs'); From 25c3c7764fa1020fb815600c75e3cf5d818fa437 Mon Sep 17 00:00:00 2001 From: Tristan Cartledge Date: Tue, 2 Jun 2026 08:41:44 +1000 Subject: [PATCH 2/2] fix: run golangci-lint through mise --- .golangci.yaml | 3 +++ .mise-tasks/lint | 5 +++-- .mise.toml | 5 +++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index fb98ac37..9f6a3d6c 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -52,6 +52,9 @@ linters: linters: - gosec settings: + govet: + disable: + - inline errcheck: exclude-functions: - (io.Closer).Close diff --git a/.mise-tasks/lint b/.mise-tasks/lint index 65521a40..b4588033 100755 --- a/.mise-tasks/lint +++ b/.mise-tasks/lint @@ -3,10 +3,11 @@ set -euo pipefail echo "๐Ÿ” Running linting checks..." -GOLANGCI_VERSION=$(golangci-lint --version | sed -nE 's/.*golangci-lint has version ([0-9.]+).*/\1/p') +GOLANGCI_LINT=(mise exec -- golangci-lint) +GOLANGCI_VERSION=$("${GOLANGCI_LINT[@]}" --version | sed -nE 's/.*golangci-lint has version ([0-9.]+).*/\1/p') GOLANGCI_VERSION=${GOLANGCI_VERSION:-unknown} echo "๐Ÿงน Running golangci-lint v${GOLANGCI_VERSION} (includes go vet)..." -golangci-lint run +"${GOLANGCI_LINT[@]}" run echo "๐Ÿ›ก๏ธ Running nilaway..." NILAWAY_BIN=$(command -v nilaway || true) diff --git a/.mise.toml b/.mise.toml index 32ae94ee..9db54f2e 100644 --- a/.mise.toml +++ b/.mise.toml @@ -1,18 +1,19 @@ [tools] +golangci-lint = "2.12.2" gotestsum = "latest" [tasks.setup-vscode-symlinks] description = "Create VSCode symlinks for tools not automatically handled by mise-vscode" run = [ "mkdir -p .vscode/mise-tools", - "ln -sf $(mise exec golangci-lint@2.7.2 -- which golangci-lint) .vscode/mise-tools/golangci-lint", + "ln -sf $(mise exec -- which golangci-lint) .vscode/mise-tools/golangci-lint", ] [hooks] postinstall = [ "ln -sf ./AGENTS.md ./CLAUDE.md", "git submodule update --init --recursive", - "go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.7.2", + "mise install golangci-lint", "mise run setup-vscode-symlinks", "go install go.uber.org/nilaway/cmd/nilaway@8ad05f0", ]