Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
steps:

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 1.24
id: go

- name: Setup Go binary path
Expand All @@ -27,7 +27,7 @@ jobs:
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH

- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: src/github.com/containerd/release-tool
fetch-depth: 25
Expand All @@ -38,9 +38,9 @@ jobs:
working-directory: src/github.com/containerd/release-tool

- name: Linter
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: v1.50.1
version: v1.64.2
working-directory: src/github.com/containerd/release-tool

- name: Unit Test
Expand Down
40 changes: 32 additions & 8 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,42 @@
linters:
enable:
- staticcheck
- unconvert
- copyloopvar # Checks for loop variable copies in Go 1.22+
- gofmt
- goimports
- revive
- gosec
- ineffassign
- vet
- unused
- misspell
- exportloopref
- tenv
- nolintlint
- revive
- staticcheck
- unconvert
- unused
- govet
- dupword # Checks for duplicate words in the source code
disable:
- errcheck

issues:
include:
- EXC0002
max-issues-per-linter: 0
max-same-issues: 0

linters-settings:
gosec:
# The following issues surfaced when `gosec` linter
# was enabled. They are temporarily excluded to unblock
# the existing workflow, but still to be addressed by
# future works.
excludes:
- G204
- G305
- G306
- G402
- G404
- G115
nolintlint:
allow-unused: true

run:
deadline: 2m
timeout: 2m
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/containerd/release-tool

go 1.19
go 1.23

require (
github.com/pelletier/go-toml/v2 v2.0.5
Expand Down
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ func resolveGitURL(name string, cache Cache) (string, error) {
return string(b), nil
}

resp, err := http.Get(u)
resp, err := http.Get(u) //nolint:gosec
if err != nil {
return "", err
}
Expand Down
Loading