Skip to content

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

Merged
TeoSlayer merged 1 commit into
mainfrom
fix/gosec-g104-catalogue
Jun 30, 2026
Merged

fix(gosec): handle resp.Body.Close in catalogue httpGet (G104)#325
TeoSlayer merged 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.
@TeoSlayer TeoSlayer merged commit 59f609e into main Jun 30, 2026
14 of 16 checks passed
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.

2 participants