Update github-actions (#5197)

* Update github-actions

* Match scripts/lint.sh golangci-lint version to CI workflow

The workflow moved to v2.13.1 while local linting stayed on v2.12.2. go1.27
support landed in golangci-lint v2.13.0, so with this PR bumping CI to Go 1.27
a developer on that toolchain would see `make lint` fail outright.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Bryan Beverly <[email protected]>
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
renovate[bot]
2026-08-25 09:17:27 -07:00
committed by GitHub
co-authored by Cursor renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Bryan Beverly
parent 8871bdec95
commit a904c69a58
8 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -42,10 +42,10 @@ jobs:
- name: Install Go
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
go-version: "1.26"
go-version: "1.27"
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4
uses: github/codeql-action/init@db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28 # v4
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -56,4 +56,4 @@ jobs:
run: |
go build .
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4
uses: github/codeql-action/analyze@db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28 # v4
+1 -1
View File
@@ -33,7 +33,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
go-version: "1.26"
go-version: "1.27"
- name: Install dependencies
run: sudo apt-get install -y zstd jq
+4 -4
View File
@@ -18,12 +18,12 @@ jobs:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
go-version: "1.26"
go-version: "1.27"
- name: golangci-lint
uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9
with:
# NOTE: Version and args must match scripts/lint.sh
version: v2.12.2
version: v2.13.1
args: --enable bodyclose,copyloopvar,misspell --timeout 10m
man-page-staleness:
name: man-page-staleness
@@ -32,7 +32,7 @@ jobs:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
go-version: "1.26"
go-version: "1.27"
- name: Regenerate man page
run: make man
- name: Check for staleness
@@ -59,6 +59,6 @@ jobs:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
go-version: "1.26"
go-version: "1.27"
- name: Run checksecretparts
run: go run ./hack/checksecretparts -fail ./pkg/detectors
+1 -1
View File
@@ -19,7 +19,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
go-version: "1.26"
go-version: "1.27"
- name: Run Head
run: |
+1 -1
View File
@@ -37,7 +37,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
go-version: "1.26"
go-version: "1.27"
- name: Cosign install
uses: sigstore/cosign-installer@7e8b541eb2e61bf99390e1afd4be13a184e9ebc5 # v3.10.1
- name: Install UPX
+2 -2
View File
@@ -12,7 +12,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
go-version: "1.26"
go-version: "1.27"
- name: Smoke
run: |
set -e
@@ -27,7 +27,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
go-version: "1.26"
go-version: "1.27"
- name: Run trufflehog
run: |
set -e
+2 -2
View File
@@ -22,7 +22,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
go-version: "1.26"
go-version: "1.27"
- id: "auth"
uses: "google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093" # v3
with:
@@ -64,6 +64,6 @@ jobs:
- name: Install Go
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
go-version: "1.26"
go-version: "1.27"
- name: Test
run: make test-community
+1 -1
View File
@@ -2,7 +2,7 @@
set -euo pipefail
# NOTE: Version and args must match .github/workflows/lint.yml
GOLANGCI_LINT_VERSION="v2.12.2"
GOLANGCI_LINT_VERSION="v2.13.1"
LINT_ARGS="--enable bodyclose,copyloopvar,misspell --timeout 10m"