Skip to content

Commit 39e1de9

Browse files
authored
Merge pull request #4620 from thaJeztah/bump_golangci_lint
update to golangci-lint v1.55.0
2 parents 8bf53ab + b7b5b31 commit 39e1de9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cli/command/image/build/context.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,7 @@ func GetContextFromURL(out io.Writer, remoteURL, dockerfileName string) (io.Read
234234
// getWithStatusError does an http.Get() and returns an error if the
235235
// status code is 4xx or 5xx.
236236
func getWithStatusError(url string) (resp *http.Response, err error) {
237-
// #nosec G107
238-
if resp, err = http.Get(url); err != nil {
237+
if resp, err = http.Get(url); err != nil { //nolint:gosec // Ignore G107: Potential HTTP request made with variable url
239238
return nil, err
240239
}
241240
if resp.StatusCode < http.StatusBadRequest {

dockerfiles/Dockerfile.lint

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
ARG GO_VERSION=1.21.3
44
ARG ALPINE_VERSION=3.17
5-
ARG GOLANGCI_LINT_VERSION=v1.54.2
5+
ARG GOLANGCI_LINT_VERSION=v1.55.0
66

77
FROM golangci/golangci-lint:${GOLANGCI_LINT_VERSION}-alpine AS golangci-lint
88

0 commit comments

Comments
 (0)