Skip to content

Commit 51d2ebd

Browse files
caxu-rhacornett21
authored andcommitted
Prevent gomod cache poisoning in setup-go
Signed-off-by: Caleb Xu <caxu@redhat.com>
1 parent b163568 commit 51d2ebd

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/build-main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ jobs:
8080
- name: Set up Go
8181
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
8282
with:
83+
cache: false
8384
go-version-file: go.mod
8485

8586
- name: Tidy

.github/workflows/go.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- name: Set up Go
2121
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
2222
with:
23+
cache: false
2324
go-version-file: go.mod
2425

2526
- name: Tidy

0 commit comments

Comments
 (0)