Skip to content

Commit 8078e6b

Browse files
committed
go1.25, golangci-lint update
1 parent b7f1457 commit 8078e6b

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Go
2020
uses: actions/setup-go@v5
2121
with:
22-
go-version: 1.24
22+
go-version: 1.25
2323

2424
- name: Build
2525
run: go build -v ./...

.github/workflows/golangci-lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
steps:
1919
- uses: actions/setup-go@v5
2020
with:
21-
go-version: 1.24
21+
go-version: 1.25
2222
- uses: actions/checkout@v4
2323
- name: golangci-lint
24-
uses: golangci/golangci-lint-action@v8
24+
uses: golangci/golangci-lint-action@v9
2525
with:
26-
version: v2.2.0
26+
version: v2.11.3
2727

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

.github/workflows/release-binary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: "Set up Go"
1919
uses: actions/setup-go@v5
2020
with:
21-
go-version: 1.24
21+
go-version: 1.25
2222

2323
- name: "Create release on GitHub"
2424
timeout-minutes: 10

.github/workflows/release-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Go
2020
uses: actions/setup-go@v5
2121
with:
22-
go-version: 1.24
22+
go-version: 1.25
2323

2424
- name: release test
2525
uses: goreleaser/goreleaser-action@v6

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/edoardottt/csprecon
22

3-
go 1.24.0
3+
go 1.25.0
44

55
require (
66
github.com/PuerkitoBio/goquery v1.11.0

pkg/csprecon/csp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const (
3131

3232
// CheckCSP returns the list of domains parsed from a URL found in CSP.
3333
func CheckCSP(url, ua string, rCSP *regexp.Regexp, client *http.Client) ([]string, error) {
34-
result := []string{}
34+
result := []string{} //nolint:prealloc
3535

3636
gologger.Debug().Msgf("Checking CSP for %s", url)
3737

0 commit comments

Comments
 (0)