Skip to content

Commit fd761c0

Browse files
authored
chore: fix dependabot alerts (#3070)
* chore: fix dependabot alerts Signed-off-by: Ramkumar Chinchani <[email protected]> * ci: fix linter config * fix: linter fixes Signed-off-by: Ramkumar Chinchani <[email protected]> --------- Signed-off-by: Ramkumar Chinchani <[email protected]>
1 parent cb9b828 commit fd761c0

File tree

20 files changed

+309
-284
lines changed

20 files changed

+309
-284
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353

5454
# Initializes the CodeQL tools for scanning.
5555
- name: Initialize CodeQL
56-
uses: github/codeql-action/[email protected].11
56+
uses: github/codeql-action/[email protected].13
5757
with:
5858
languages: ${{ matrix.language }}
5959
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -64,7 +64,7 @@ jobs:
6464
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6565
# If this step fails, then you should remove it and run the build manually (see below)
6666
- name: Autobuild
67-
uses: github/codeql-action/[email protected].11
67+
uses: github/codeql-action/[email protected].13
6868

6969
# ℹ️ Command-line programs to run using the OS shell.
7070
# 📚 https://git.io/JvXDl
@@ -77,4 +77,4 @@ jobs:
7777
# make release
7878

7979
- name: Perform CodeQL Analysis
80-
uses: github/codeql-action/[email protected].11
80+
uses: github/codeql-action/[email protected].13

.github/workflows/golangci-lint.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ jobs:
2121
go-version: '1.23'
2222
- uses: actions/checkout@v4
2323
- name: Run linter with GH action
24-
uses: golangci/golangci-lint-action@v6
24+
uses: golangci/golangci-lint-action@v7
2525
with:
2626
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
27-
version: v1.61.0
27+
version: v2.0.2
2828

2929
# Optional: working directory, useful for monorepos
3030
# working-directory: somedir
3131

3232
# Optional: golangci-lint command line arguments.
3333
# args: --issues-exit-code=0
34-
args: --config ./golangcilint.yaml --enable-all --build-tags debug,needprivileges,sync,scrub,search,userprefs,metrics,containers_image_openpgp,lint,mgmt,imagetrust ./cmd/... ./pkg/...
34+
args: --config ./golangcilint.yaml --build-tags debug,needprivileges,sync,scrub,search,userprefs,metrics,containers_image_openpgp,lint,mgmt,imagetrust ./cmd/... ./pkg/...
3535

3636
# Optional: show only new issues if it's a pull request. The default value is `false`.
3737
# only-new-issues: true

.github/workflows/publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ jobs:
237237
TRIVY_USERNAME: ${{ github.actor }}
238238
TRIVY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
239239
- name: Upload Trivy scan results to GitHub Security tab
240-
uses: github/codeql-action/[email protected].11
240+
uses: github/codeql-action/[email protected].13
241241
with:
242242
sarif_file: 'trivy-results.sarif'
243243

@@ -274,7 +274,7 @@ jobs:
274274
TRIVY_USERNAME: ${{ github.actor }}
275275
TRIVY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
276276
- name: Upload Trivy scan results to GitHub Security tab
277-
uses: github/codeql-action/[email protected].11
277+
uses: github/codeql-action/[email protected].13
278278
with:
279279
sarif_file: 'trivy-results.sarif'
280280

.github/workflows/scorecards.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ jobs:
5757

5858
# Upload the results to GitHub's code scanning dashboard.
5959
- name: "Upload to code-scanning"
60-
uses: github/codeql-action/[email protected].11
60+
uses: github/codeql-action/[email protected].13
6161
with:
6262
sarif_file: results.sarif

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ TOOLSDIR := $(shell pwd)/hack/tools
1010
PATH := bin:$(TOOLSDIR)/bin:$(PATH)
1111
STACKER := $(shell which stacker)
1212
GOLINTER := $(TOOLSDIR)/bin/golangci-lint
13-
GOLINTER_VERSION := v1.61.0
13+
GOLINTER_VERSION := v2.0.2
1414
NOTATION := $(TOOLSDIR)/bin/notation
1515
NOTATION_VERSION := 1.0.0
1616
COSIGN := $(TOOLSDIR)/bin/cosign
@@ -324,11 +324,11 @@ check-logs:
324324
check: $(if $(findstring ui,$(BUILD_LABELS)), ui)
325325
check: ./golangcilint.yaml $(GOLINTER)
326326
mkdir -p pkg/extensions/build; touch pkg/extensions/build/.empty
327-
$(GOLINTER) --config ./golangcilint.yaml run --enable-all --out-format=colored-line-number --build-tags containers_image_openpgp ./...
328-
$(GOLINTER) --config ./golangcilint.yaml run --enable-all --out-format=colored-line-number --build-tags $(BUILD_LABELS),containers_image_openpgp ./...
329-
$(GOLINTER) --config ./golangcilint.yaml run --enable-all --out-format=colored-line-number --build-tags debug ./pkg/debug/swagger/ ./pkg/debug/gqlplayground
330-
$(GOLINTER) --config ./golangcilint.yaml run --enable-all --out-format=colored-line-number --build-tags dev ./pkg/test/inject/
331-
$(GOLINTER) --config ./golangcilint.yaml run --enable-all --out-format=colored-line-number --build-tags stress ./pkg/cli/server/
327+
$(GOLINTER) --config ./golangcilint.yaml run --output.text.colors --build-tags containers_image_openpgp ./...
328+
$(GOLINTER) --config ./golangcilint.yaml run --output.text.colors --build-tags $(BUILD_LABELS),containers_image_openpgp ./...
329+
$(GOLINTER) --config ./golangcilint.yaml run --output.text.colors --build-tags debug ./pkg/debug/swagger/ ./pkg/debug/gqlplayground
330+
$(GOLINTER) --config ./golangcilint.yaml run --output.text.colors --build-tags dev ./pkg/test/inject/
331+
$(GOLINTER) --config ./golangcilint.yaml run --output.text.colors --build-tags stress ./pkg/cli/server/
332332
rm pkg/extensions/build/.empty
333333

334334
.PHONY: swagger

cmd/zb/helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ func pushMonolithImage(workdir, url, trepo string, repos []string, config testCo
349349
statusCode = resp.StatusCode()
350350
if statusCode != http.StatusAccepted {
351351
return nil, repos, fmt.Errorf("%w: Expected: %d, Got: %d, Body: '%s'", zerr.ErrBadHTTPStatusCode, http.StatusAccepted,
352-
resp.StatusCode(), string(resp.Body())) //nolint: goerr113
352+
resp.StatusCode(), string(resp.Body())) //nolint: err113
353353
}
354354

355355
loc := getLocation(url, resp)

0 commit comments

Comments
 (0)