Skip to content

Commit a6af887

Browse files
authored
Go version again (#1773)
* gni * go mod * again * ci * lint
1 parent 6e2b90b commit a6af887

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
go-version-file: waf-check/go.mod
3434

3535
- name: golangci-lint
36-
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
36+
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
3737
with:
38-
version: v2.5
38+
version: v2.10
3939
args: --issues-exit-code=1 --timeout 10m
4040
only-new-issues: false
4141
working-directory: waf-check

.github/workflows/test_appsec_rules.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3232
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
3333
with:
34-
go-version: '1.25'
34+
go-version: '1.26'
3535
- name: Install requirements
3636
run: |
3737
sudo apt update

waf-check/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module waf-check
22

3-
go 1.25
3+
go 1.26
44

55
require gopkg.in/yaml.v2 v2.4.0

waf-check/request.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ func (r *Request) Curl() string {
5252
curlCmd.WriteString("curl -X " + r.Method)
5353

5454
for key, value := range r.Headers {
55-
curlCmd.WriteString(fmt.Sprintf(" -H '%s: %s'", key, value))
55+
fmt.Fprintf(&curlCmd, " -H '%s: %s'", key, value)
5656
}
5757
if r.Method == http.MethodPost || r.Method == http.MethodPut {
58-
curlCmd.WriteString(fmt.Sprintf(" -d '%s'", r.Data))
58+
fmt.Fprintf(&curlCmd, " -d '%s'", r.Data)
5959
}
60-
curlCmd.WriteString(fmt.Sprintf(" '%s'", r.FullURL))
60+
fmt.Fprintf(&curlCmd, " '%s'", r.FullURL)
6161

6262
return curlCmd.String()
6363
}

0 commit comments

Comments
 (0)