File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ func (d *dumper) dumpRequest(req *http.Request) error {
110110 buf .Write (prettyBody )
111111 buf .WriteByte ('\n' )
112112
113- return os .WriteFile (dumpPath , buf .Bytes (), 0o600 )
113+ return os .WriteFile (dumpPath , buf .Bytes (), 0o644 ) //nolint:gosec // https://github.com/coder/aibridge/pull/256#discussion_r3072143983
114114}
115115
116116func (d * dumper ) dumpResponse (resp * http.Response ) error {
@@ -133,7 +133,7 @@ func (d *dumper) dumpResponse(resp *http.Response) error {
133133
134134 if resp .Body == nil {
135135 // No body, just write headers
136- return os .WriteFile (dumpPath , headerBuf .Bytes (), 0o600 )
136+ return os .WriteFile (dumpPath , headerBuf .Bytes (), 0o644 ) //nolint:gosec // https://github.com/coder/aibridge/pull/256#discussion_r3072143983
137137 }
138138
139139 // Wrap the response body to capture it as it streams
You can’t perform that action at this time.
0 commit comments