Skip to content

Commit bdc591b

Browse files
chore: update all dependencies (#43)
1 parent 3ddba72 commit bdc591b

19 files changed

Lines changed: 415 additions & 400 deletions

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v5
1919
with:
20-
go-version: '1.26'
20+
go-version: '1.27'
2121
- name: Test if go.mod and go.sum are up to date
2222
run: |
2323
go mod tidy

.github/workflows/licenses.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Set up Go
1515
uses: actions/setup-go@v5
1616
with:
17-
go-version: '1.26'
17+
go-version: '1.27'
1818
- name: Test if go.mod and go.sum are up to date
1919
run: |
2020
go mod tidy

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ARG VITE_UNIVERSAL_LINK_PROTOCOL="twofaspass"
2121
COPY api/licenses.json ../api/licenses.json
2222
RUN yarn build-ci
2323

24-
FROM golang:1.26.6-alpine AS gobuilder
24+
FROM golang:1.27.0-alpine AS gobuilder
2525

2626
WORKDIR /go/src/2fas-share
2727

api/.golangci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
version: "2"
88
run:
9-
go: "1.24"
9+
go: "1.27"
1010
modules-download-mode: readonly
1111
linters:
1212
default: none
@@ -42,7 +42,7 @@ linters:
4242
- gocyclo
4343
- godot
4444
- gomoddirectives
45-
- gomodguard
45+
- gomodguard_v2
4646
- goprintffuncname
4747
- gosec
4848
- gosmopolitan
@@ -102,6 +102,10 @@ linters:
102102
- third_party$
103103
- builtin$
104104
- examples$
105+
rules:
106+
- path: '(.+)_test\.go'
107+
linters:
108+
- goconst
105109
formatters:
106110
enable:
107111
- gofmt

api/e2e/e2e_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func waitForServer(timeout, interval time.Duration) error {
5151
return fmt.Errorf("creating health check request: %w", err)
5252
}
5353

54-
resp, err := http.DefaultClient.Do(req) //nolint:gosec // This is tests, and we are making request to tested server.
54+
resp, err := http.DefaultClient.Do(req)
5555
if err == nil {
5656
resp.Body.Close()
5757
if resp.StatusCode == http.StatusOK {
@@ -90,7 +90,7 @@ func post(path string, reqBody any, resp any) (int, error) {
9090
}
9191
req.Header.Set("Content-Type", "application/json")
9292

93-
httpResp, err := http.DefaultClient.Do(req) //nolint:gosec // URL from test config
93+
httpResp, err := http.DefaultClient.Do(req)
9494
if err != nil {
9595
return 0, fmt.Errorf("sending POST request to %s: %w", path, err)
9696
}
@@ -122,7 +122,7 @@ func get(path string, resp any) (int, error) {
122122
return 0, fmt.Errorf("creating request: %w", err)
123123
}
124124

125-
httpResp, err := http.DefaultClient.Do(req) //nolint:gosec // URL from test config
125+
httpResp, err := http.DefaultClient.Do(req)
126126
if err != nil {
127127
return 0, fmt.Errorf("sending GET request to %s: %w", path, err)
128128
}
@@ -291,7 +291,7 @@ func TestE2E_CreateSecret_InvalidJSON(t *testing.T) {
291291
}
292292
req.Header.Set("Content-Type", "application/json")
293293

294-
resp, err := http.DefaultClient.Do(req) //nolint:gosec // URL from test config
294+
resp, err := http.DefaultClient.Do(req)
295295
if err != nil {
296296
t.Fatalf("Failed to send POST request to %s: %v", path, err)
297297
}
@@ -594,7 +594,7 @@ func TestE2E_CORS_Headers(t *testing.T) {
594594
t.Fatalf("Failed to create request: %v", err)
595595
}
596596

597-
resp, err := http.DefaultClient.Do(req) //nolint:gosec // URL from test config
597+
resp, err := http.DefaultClient.Do(req)
598598
if err != nil {
599599
t.Fatalf("Failed to send request: %v", err)
600600
}
@@ -612,7 +612,7 @@ func TestE2E_CORS_PreflightRequest(t *testing.T) {
612612
req.Header.Set("Origin", "https://example.com")
613613
req.Header.Set("Access-Control-Request-Method", "POST")
614614

615-
resp, err := http.DefaultClient.Do(req) //nolint:gosec // URL from test config
615+
resp, err := http.DefaultClient.Do(req)
616616
if err != nil {
617617
t.Fatalf("Failed to send request: %v", err)
618618
}
@@ -635,7 +635,7 @@ func TestE2E_CORS_CreateSecret(t *testing.T) {
635635
}
636636
req.Header.Set("Content-Type", "application/json")
637637

638-
resp, err := http.DefaultClient.Do(req) //nolint:gosec // URL from test config
638+
resp, err := http.DefaultClient.Do(req)
639639
if err != nil {
640640
t.Fatalf("Failed to send request: %v", err)
641641
}
@@ -660,7 +660,7 @@ func TestE2E_CORS_GetSecret(t *testing.T) {
660660
t.Fatalf("Failed to create request: %v", err)
661661
}
662662

663-
resp, err := http.DefaultClient.Do(req) //nolint:gosec // URL from test config
663+
resp, err := http.DefaultClient.Do(req)
664664
if err != nil {
665665
t.Fatalf("Failed to send request: %v", err)
666666
}

0 commit comments

Comments
 (0)