Skip to content

fix(gosec): handle resp.Body.Close in catalogue httpGet (G104)#325

Open
Alexgodoroja wants to merge 1 commit into
mainfrom
fix/gosec-g104-catalogue
Open

fix(gosec): handle resp.Body.Close in catalogue httpGet (G104)#325
Alexgodoroja wants to merge 1 commit into
mainfrom
fix/gosec-g104-catalogue

Conversation

@Alexgodoroja

Copy link
Copy Markdown
Collaborator

Resolves the gosec G104 (errors unhandled) finding at internal/catalogue/catalogue.go:131: httpGet ignored the resp.Body.Close() error on the non-200 path. Discard it explicitly (_ =) — the status error returned right after is the actionable one. No behavior change.

🤖 Generated with Claude Code

@Alexgodoroja Alexgodoroja requested a review from TeoSlayer as a code owner June 23, 2026 20:05
…(G104)

httpGet ignored the Close() error in the non-200 branch. Discard it
explicitly — the status error returned below is the actionable one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant