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