Skip to content

fix(security): handle resp.Body.Close() errors for gosec G104 #8

fix(security): handle resp.Body.Close() errors for gosec G104

fix(security): handle resp.Body.Close() errors for gosec G104 #8

Triggered via push February 24, 2026 14:42
Status Failure
Total duration 55s
Artifacts

ci.yml

on: push
Matrix: Test
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 7 warnings
Lint: interceptor_test.go#L196
Error return value of `truseraClient.Close` is not checked (errcheck)
Lint: interceptor_test.go#L160
Error return value of `truseraClient.Close` is not checked (errcheck)
Lint: interceptor_test.go#L125
Error return value of `truseraClient.Close` is not checked (errcheck)
Lint: interceptor_test.go#L88
Error return value of `truseraClient.Close` is not checked (errcheck)
Lint: interceptor_test.go#L53
Error return value of `truseraClient.Close` is not checked (errcheck)
Lint: interceptor_test.go#L43
Error return value of `w.Write` is not checked (errcheck)
Lint: interceptor_test.go#L20
Error return value of `truseraClient.Close` is not checked (errcheck)
Lint: interceptor.go#L199
Error return value of `client.Close` is not checked (errcheck)
Lint: interceptor.go#L72
Error return value of `req.Body.Close` is not checked (errcheck)
Lint: events.go#L34
Error return value of `rand.Read` is not checked (errcheck)
Build
Restore cache failed: Dependencies file is not found in /home/runner/work/trusera-sdk-go/trusera-sdk-go. Supported file pattern: go.sum
Lint
Failed to save: <h2>Our services aren't available right now</h2><p>We're working to restore all services as soon as possible. Please check back soon.</p>0A7mdaQAAAAB0AbK0fW5QSJTnxdJ34K2bUEhMMzBFREdFMDIwNgBFZGdl
Lint
Failed to restore: Cache service responded with 400
Lint
Restore cache failed: Dependencies file is not found in /home/runner/work/trusera-sdk-go/trusera-sdk-go. Supported file pattern: go.sum
Test (1.23)
Restore cache failed: Dependencies file is not found in /home/runner/work/trusera-sdk-go/trusera-sdk-go. Supported file pattern: go.sum
Test (1.21)
Restore cache failed: Dependencies file is not found in /home/runner/work/trusera-sdk-go/trusera-sdk-go. Supported file pattern: go.sum
Test (1.22)
Restore cache failed: Dependencies file is not found in /home/runner/work/trusera-sdk-go/trusera-sdk-go. Supported file pattern: go.sum