Skip to content

Commit

Permalink
Add gosec ignore for body close
Browse files Browse the repository at this point in the history
  • Loading branch information
nmanoogian committed Aug 19, 2024
1 parent c8187c9 commit e25ddc4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ func PerformRequest(context APIContext, req *http.Request) (*APIResponse, *APIEr
if err != nil {
return nil, &APIError{Err: err, Message: "Unable to load response"}
}

// #nosec G307
defer r.Body.Close()

body, err := ioutil.ReadAll(r.Body)
Expand Down

0 comments on commit e25ddc4

Please sign in to comment.