Skip to content

Commit 739ec4a

Browse files
Merge branch 'main' into ramonpetgrave64-internal-builder-sigstore-bundlev2
2 parents 60e98e9 + edb0d82 commit 739ec4a

File tree

11 files changed

+6
-27
lines changed

11 files changed

+6
-27
lines changed

.github/workflows/pre-submit.lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ jobs:
8787
with:
8888
go-version-file: "go.mod"
8989
- env:
90-
GOLANGCI_LINT_VERSION: "1.60.3"
91-
GOLANGCI_LINT_CHECKSUM: "4037af8122871f401ed874852a471e54f147ff8ce80f5a304e020503bdb806ef"
90+
GOLANGCI_LINT_VERSION: "1.61.0"
91+
GOLANGCI_LINT_CHECKSUM: "77cb0af99379d9a21d5dc8c38364d060e864a01bd2f3e30b5e8cc550c3a54111"
9292
run: |
9393
set -euo pipefail
9494

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ linters:
4545
# TODO(github.com/slsa-framework/slsa-github-generator/issues/450): enable errorlint
4646
# - errorlint
4747
- exhaustive
48-
- exportloopref
48+
- copyloopvar
4949
# TODO(github.com/slsa-framework/slsa-github-generator/issues/450): enable gci
5050
# - gci
5151
- gochecknoinits

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/slsa-framework/slsa-github-generator
22

3-
go 1.22.5
4-
5-
toolchain go1.23.0
3+
go 1.23.1
64

75
require (
86
github.com/coreos/go-oidc/v3 v3.11.0

internal/builders/go/e2e-presubmits/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module slsa-framework/example-package
22

3-
go 1.21
3+
go 1.23.1
44

55
require github.com/pborman/uuid v1.2.1
66

internal/builders/go/main_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ func Test_runBuild(t *testing.T) {
298298
}
299299

300300
for _, tt := range tests {
301-
tt := tt // Re-initializing variable so it is not changed while executing the closure below
302301
t.Run(tt.name, func(t *testing.T) {
303302
// *** WARNING: do not enable t.Parallel(), because we're writing to environment variables ***.
304303
file, err := os.CreateTemp("", "")

internal/builders/go/pkg/build_test.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ func Test_isAllowedEnvVariable(t *testing.T) {
9090
},
9191
}
9292
for _, tt := range tests {
93-
tt := tt // Re-initializing variable so it is not changed while executing the closure below
9493
t.Run(tt.name, func(t *testing.T) {
9594
t.Parallel()
9695

@@ -126,7 +125,6 @@ func Test_getOutputBinaryPath(t *testing.T) {
126125
},
127126
}
128127
for _, tt := range tests {
129-
tt := tt // Re-initializing variable so it is not changed while executing the closure below
130128
t.Run(tt.name, func(t *testing.T) {
131129
t.Parallel()
132130

@@ -177,7 +175,6 @@ func Test_isAllowedArg(t *testing.T) {
177175
})
178176
}
179177
for _, tt := range tests {
180-
tt := tt // Re-initializing variable so it is not changed while executing the closure below
181178
t.Run(tt.name, func(t *testing.T) {
182179
t.Parallel()
183180

@@ -442,7 +439,6 @@ func Test_generateOutputFilename(t *testing.T) {
442439
}
443440

444441
for _, tt := range tests {
445-
tt := tt // Re-initializing variable so it is not changed while executing the closure below
446442
t.Run(tt.name, func(t *testing.T) {
447443
// Note: disable parallelism to avoid env variable clobbering between tests.
448444
// t.Parallel()
@@ -595,7 +591,6 @@ func Test_SetArgEnvVariables(t *testing.T) {
595591
}
596592

597593
for _, tt := range tests {
598-
tt := tt // Re-initializing variable so it is not changed while executing the closure below
599594
t.Run(tt.name, func(t *testing.T) {
600595
t.Parallel()
601596

@@ -704,7 +699,6 @@ func Test_generateEnvVariables(t *testing.T) {
704699
}
705700

706701
for _, tt := range tests {
707-
tt := tt // Re-initializing variable so it is not changed while executing the closure below
708702
t.Run(tt.name, func(t *testing.T) {
709703
t.Parallel()
710704

@@ -862,7 +856,6 @@ func Test_generateLdflags(t *testing.T) {
862856
}
863857

864858
for _, tt := range tests {
865-
tt := tt // Re-initializing variable so it is not changed while executing the closure below
866859
t.Run(tt.name, func(t *testing.T) {
867860
// Disable to avoid env clobbering between tests.
868861
// t.Parallel()
@@ -954,7 +947,6 @@ func Test_generateFlags(t *testing.T) {
954947
}
955948

956949
for _, tt := range tests {
957-
tt := tt // Re-initializing variable so it is not changed while executing the closure below
958950
t.Run(tt.name, func(t *testing.T) {
959951
t.Parallel()
960952

@@ -1024,7 +1016,6 @@ func Test_generateCommand(t *testing.T) {
10241016
}
10251017

10261018
for _, tt := range tests {
1027-
tt := tt // Re-initializing variable so it is not changed while executing the closure below
10281019
t.Run(tt.name, func(t *testing.T) {
10291020
t.Parallel()
10301021

internal/builders/go/pkg/config_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ func Test_ConfigFromFile(t *testing.T) {
185185
},
186186
}
187187
for _, tt := range tests {
188-
tt := tt // Re-initializing variable so it is not changed while executing the closure below
189188
t.Run(tt.name, func(t *testing.T) {
190189
t.Parallel()
191190

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/slsa-framework/slsa-github-generator/internal/builders/go/pkg/testdata/go
22

3-
go 1.19
3+
go 1.23.1

internal/utils/marshal_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ func Test_MarshalToString(t *testing.T) {
4646
},
4747
}
4848
for _, tt := range tests {
49-
tt := tt // Re-initializing variable so it is not changed while executing the closure below
5049
t.Run(tt.name, func(t *testing.T) {
5150
t.Parallel()
5251

@@ -91,7 +90,6 @@ func Test_UnmarshalList(t *testing.T) {
9190
},
9291
}
9392
for _, tt := range tests {
94-
tt := tt // Re-initializing variable so it is not changed while executing the closure below
9593
t.Run(tt.name, func(t *testing.T) {
9694
t.Parallel()
9795

internal/utils/path_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ func Test_PathIsUnderCurrentDirectory(t *testing.T) {
6969
},
7070
}
7171
for _, tt := range tests {
72-
tt := tt // Re-initializing variable so it is not changed while executing the closure below
7372
t.Run(tt.name, func(t *testing.T) {
7473
t.Parallel()
7574

@@ -121,7 +120,6 @@ func Test_VerifyAttestationPath(t *testing.T) {
121120
},
122121
}
123122
for _, tt := range tests {
124-
tt := tt // Re-initializing variable so it is not changed while executing the closure below
125123
t.Run(tt.name, func(t *testing.T) {
126124
t.Parallel()
127125

@@ -193,7 +191,6 @@ func Test_CreateNewFileUnderCurrentDirectory(t *testing.T) {
193191
},
194192
}
195193
for _, tt := range tests {
196-
tt := tt // Re-initializing variable so it is not changed while executing the closure below
197194
t.Run(tt.name, func(t *testing.T) {
198195
cleanup, err := tempWD()
199196
if err != nil {
@@ -273,7 +270,6 @@ func Test_PathIsUnderDirectory(t *testing.T) {
273270
},
274271
}
275272
for _, tt := range tests {
276-
tt := tt // Re-initializing variable so it is not changed while executing the closure below
277273
t.Run(tt.name, func(t *testing.T) {
278274
t.Parallel()
279275

0 commit comments

Comments
 (0)