Skip to content

Commit e36af2f

Browse files
authored
Merge branch 'main' into bump-1.2.7
2 parents c016317 + d81a51b commit e36af2f

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.github/workflows/post-merge.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
contents: read
2222
security-events: write
2323
id-token: write
24+
actions: read
2425
uses: open-edge-platform/orch-ci/.github/workflows/post-merge.yml@24a3a495be45af021486e265cf09a17ac3798405 # 2026.0.13
2526
with:
2627
cache_go: true

internal/auth/auth_fuzz_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
package auth
55

66
import (
7+
"net/http"
78
"net/http/httptest"
89
"net/url"
910
"strings"
@@ -134,7 +135,10 @@ func FuzzHTTPMethods(f *testing.F) {
134135
}
135136

136137
// Create request with fuzzy method and path
137-
req := httptest.NewRequest(method, path, nil)
138+
req, err := http.NewRequest(method, path, nil)
139+
if err != nil {
140+
return
141+
}
138142
req.Header.Set(agent.TunnelIdHeader, "test-tunnel")
139143

140144
// Test that request handling doesn't panic

internal/middleware/middleware_fuzz_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package middleware
55

66
import (
77
"fmt"
8+
"net/http"
89
"net/http/httptest"
910
"net/url"
1011
"strings"
@@ -182,7 +183,10 @@ func FuzzHTTPRequestMethods(f *testing.F) {
182183
return
183184
}
184185

185-
req := httptest.NewRequest(method, path, nil)
186+
req, err := http.NewRequest(method, path, nil)
187+
if err != nil {
188+
return
189+
}
186190
if contentType != "" {
187191
req.Header.Set("Content-Type", contentType)
188192
}

0 commit comments

Comments
 (0)