Skip to content

Commit 4616878

Browse files
committed
fix: ci pipeline with correct version
1 parent c47e82d commit 4616878

3 files changed

Lines changed: 51 additions & 5 deletions

File tree

.github/dependabot.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: 2
2+
3+
updates:
4+
# Go module dependencies
5+
- package-ecosystem: gomod
6+
directory: /
7+
schedule:
8+
interval: weekly
9+
day: monday
10+
open-pull-requests-limit: 10
11+
groups:
12+
# Batch all indirect deps into one PR to reduce noise
13+
indirect:
14+
dependency-type: indirect
15+
16+
# GitHub Actions
17+
- package-ecosystem: github-actions
18+
directory: /
19+
schedule:
20+
interval: weekly
21+
day: monday
22+
open-pull-requests-limit: 10

.github/workflows/ci.yml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
permissions:
1010
contents: read
1111

12+
env:
13+
go-version: "1.26.0"
14+
lint-version: "v2.9.0"
15+
1216
jobs:
1317
test:
1418
name: Test (${{ matrix.os }})
@@ -23,7 +27,7 @@ jobs:
2327

2428
- uses: actions/setup-go@v5
2529
with:
26-
go-version: stable
30+
go-version: ${{ env.go-version }}
2731
cache: true
2832

2933
- name: Verify module consistency
@@ -55,15 +59,32 @@ jobs:
5559

5660
- uses: actions/setup-go@v5
5761
with:
58-
go-version: stable
62+
go-version: ${{ env.go-version }}
5963
cache: true
6064

6165
- name: golangci-lint
6266
uses: golangci/golangci-lint-action@v6
6367
with:
64-
version: latest
68+
version: ${{ env.lint-version }}
6569
args: --timeout=5m
6670

71+
vuln:
72+
name: Vulnerability scan
73+
runs-on: ubuntu-latest
74+
steps:
75+
- uses: actions/checkout@v4
76+
77+
- uses: actions/setup-go@v5
78+
with:
79+
go-version: ${{ env.go-version }}
80+
cache: true
81+
82+
- name: Install govulncheck
83+
run: go install golang.org/x/vuln/cmd/govulncheck@latest
84+
85+
- name: Run govulncheck
86+
run: govulncheck ./...
87+
6788
build-snapshot:
6889
name: Build snapshot
6990
runs-on: ubuntu-latest
@@ -74,7 +95,7 @@ jobs:
7495

7596
- uses: actions/setup-go@v5
7697
with:
77-
go-version: stable
98+
go-version: ${{ env.go-version }}
7899
cache: true
79100

80101
- uses: goreleaser/goreleaser-action@v6

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ permissions:
99
contents: write
1010
packages: write
1111

12+
env:
13+
go-version: "1.26.0"
14+
1215
jobs:
1316
release:
1417
name: Release
@@ -20,7 +23,7 @@ jobs:
2023

2124
- uses: actions/setup-go@v5
2225
with:
23-
go-version: stable
26+
go-version: ${{ env.go-version }}
2427
cache: true
2528

2629
- name: Run tests before release

0 commit comments

Comments
 (0)