Skip to content

Commit b97d1de

Browse files
authored
fix(release v2.3.3): setup-go github action to use go.mod (#2514)
Lint is failing because the setup go action is using `go-version: stable`. And v1.26 was released yesterday (we're still on 1.25.7) Suggesting to set it to `go-version-file: 'go.mod'`.
1 parent 7a8f649 commit b97d1de

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

.github/workflows/cassettes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
persist-credentials: false
2727
- uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
2828
with:
29-
go-version: stable
29+
go-version-file: "go.mod"
3030
check-latest: true
3131
- run: ./scripts/run_tests.sh || true
3232
env:

.github/workflows/checks.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
- name: Set up Go
7878
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
7979
with:
80-
go-version: stable
80+
go-version-file: "go.mod"
8181
check-latest: true
8282
- run: go mod tidy -diff
8383
lint:
@@ -93,7 +93,7 @@ jobs:
9393
- name: Set up Go
9494
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
9595
with:
96-
go-version: stable
96+
go-version-file: "go.mod"
9797
check-latest: true
9898
- name: Run lint action
9999
uses: ./.github/workflows/lint-action
@@ -135,7 +135,7 @@ jobs:
135135
- name: Set up Go
136136
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
137137
with:
138-
go-version: stable
138+
go-version-file: "go.mod"
139139
check-latest: true
140140
- name: Run test action
141141
uses: ./.github/workflows/test-action
@@ -156,7 +156,7 @@ jobs:
156156
- name: Set up Go
157157
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
158158
with:
159-
go-version: stable
159+
go-version-file: "go.mod"
160160
check-latest: true
161161
- uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
162162
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3

.github/workflows/dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
persist-credentials: false
2727
- uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
2828
with:
29-
go-version: stable
29+
go-version-file: "go.mod"
3030
check-latest: true
3131
- run: |
3232
latest_commit=$(git ls-remote https://github.com/google/osv-scalibr.git HEAD | cut -f1)

.github/workflows/goreleaser-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Set up Go
3030
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
3131
with:
32-
go-version: stable
32+
go-version-file: "go.mod"
3333
check-latest: true
3434
- uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
3535
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3

.github/workflows/goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Set up Go
2929
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
3030
with:
31-
go-version: stable
31+
go-version-file: "go.mod"
3232
check-latest: true
3333
- uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
3434
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3

.github/workflows/prerelease-check.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
- name: Set up Go
6565
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
6666
with:
67-
go-version: stable
67+
go-version-file: "go.mod"
6868
check-latest: true
6969
- run: go mod tidy -diff
7070
lint:
@@ -81,7 +81,7 @@ jobs:
8181
- name: Set up Go
8282
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
8383
with:
84-
go-version: stable
84+
go-version-file: "go.mod"
8585
check-latest: true
8686
- name: Run lint action
8787
uses: ./.github/workflows/lint-action
@@ -124,7 +124,7 @@ jobs:
124124
- name: Set up Go
125125
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
126126
with:
127-
go-version: stable
127+
go-version-file: "go.mod"
128128
check-latest: true
129129
- name: Run test action
130130
uses: ./.github/workflows/test-action
@@ -144,7 +144,7 @@ jobs:
144144
- name: Set up Go
145145
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
146146
with:
147-
go-version: stable
147+
go-version-file: "go.mod"
148148
check-latest: true
149149
- name: Run generators
150150
run: go generate ./...

.github/workflows/snapshots.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
persist-credentials: false
2727
- uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
2828
with:
29-
go-version: stable
29+
go-version-file: "go.mod"
3030
check-latest: true
3131
- run: ./scripts/run_tests.sh || true
3232
env:

0 commit comments

Comments
 (0)