Merge pull request #4620 from thaJeztah/bump_golangci_lint

update to golangci-lint v1.55.0
This commit is contained in:
Sebastiaan van Stijn 2023-10-24 13:34:42 +02:00 committed by GitHub
commit 39e1de95ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

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

View File

@ -2,7 +2,7 @@
ARG GO_VERSION=1.21.3 ARG GO_VERSION=1.21.3
ARG ALPINE_VERSION=3.17 ARG ALPINE_VERSION=3.17
ARG GOLANGCI_LINT_VERSION=v1.54.2 ARG GOLANGCI_LINT_VERSION=v1.55.0
FROM golangci/golangci-lint:${GOLANGCI_LINT_VERSION}-alpine AS golangci-lint FROM golangci/golangci-lint:${GOLANGCI_LINT_VERSION}-alpine AS golangci-lint