Skip to content

chore: resolve open dependabot security alerts - #309

Merged
jonathannorris merged 2 commits into
mainfrom
chore/dependabot-alerts
Jul 13, 2026
Merged

chore: resolve open dependabot security alerts#309
jonathannorris merged 2 commits into
mainfrom
chore/dependabot-alerts

Conversation

@jonathannorris

Copy link
Copy Markdown
Member

Summary

  • Resolved 14 open Dependabot security alerts by bumping vulnerable Go modules

Dependabot Alerts Resolved

Alert Package Severity Fix
#24#36 golang.org/x/crypto CRITICAL/HIGH/MEDIUM Bumped v0.45.0 → v0.54.0
#23 golang.org/x/net MEDIUM Bumped v0.47.0 → v0.57.0

Additional changes

  • go directive bumped 1.24.0 → 1.25.0 (required by x/crypto v0.54.0)
  • Updated golangci-lint-action v4 → v8 (golangci-lint v2 required for Go 1.25 support)
  • Added .golangci.yml to suppress pre-existing style issues newly flagged by golangci-lint v2 (ST1003, ST1016, ST1020/21/22 — naming conventions and comment format on public API that predate this PR)
  • Fixed ST1005 and errcheck issues surfaced by the updated linter

- golang.org/x/crypto v0.45.0 -> v0.54.0 (critical/high/medium, alerts #24-#36)
- golang.org/x/net v0.47.0 -> v0.57.0 (medium, alert #23)
- go directive 1.24.0 -> 1.25.0 (required by x/crypto v0.54.0)
- golangci-lint-action v4 -> v8 (golangci-lint v2 required for Go 1.25)
- add .golangci.yml to suppress pre-existing style checks, fix ST1005 and errcheck issues
@jonathannorris
jonathannorris requested a review from a team as a code owner July 10, 2026 13:56
Copilot AI review requested due to automatic review settings July 10, 2026 13:56
@jonathannorris
jonathannorris enabled auto-merge (squash) July 10, 2026 13:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR focuses on resolving Dependabot security alerts by bumping vulnerable golang.org/x/* modules, updating the repo’s Go toolchain target, and adjusting CI linting configuration to accommodate the newer Go/golangci-lint versions.

Changes:

  • Bumped golang.org/x/crypto and golang.org/x/net (and related indirect deps) to patched versions; updated go directive to 1.25.0.
  • Updated GitHub Actions lint workflow to golangci/golangci-lint-action@v8 and added a .golangci.yml config.
  • Addressed newly surfaced linter findings by adjusting a few error strings and ignoring Close() return values in examples/tests.

Reviewed changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
request.go Tweaks an error string when request body encoding results in an empty buffer.
configmanager.go Refactors an error format string for unexpected HTTP status codes.
bucketing/model_filters.go Removes trailing newlines from several fmt.Errorf messages.
client.go Normalizes an error message string casing (Nilnil).
event_manager.go Removes trailing punctuation from an error string.
example/hooks/main.go Avoids errcheck failure by explicitly ignoring Close()’s error.
config_metadata_test.go Suppresses errcheck on defer client.Close() in tests.
go.mod Bumps go directive and updates indirect golang.org/x/* dependency versions.
go.sum Updates module checksums for bumped dependencies.
.golangci.yml Adds golangci-lint configuration to suppress pre-existing staticcheck/style findings.
.github/workflows/lint.yml Updates golangci-lint GitHub Action from v4 to v8.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread request.go
Comment on lines 55 to 57
if bodyBuf.Len() == 0 {
err = fmt.Errorf("invalid body type %s\n", contentType)
err = fmt.Errorf("invalid body type %s", contentType)
return nil, err
Comment thread configmanager.go
Comment on lines +321 to 322
err = fmt.Errorf("unexpected response code: %d\nBody: %s\nURL: %s\nHeaders: %s\nCould not download configuration. Using cached version if available %s",
resp.StatusCode, resp.Body, e.getConfigURL(), resp.Header, resp.Header.Get("ETag"))
@jonathannorris
jonathannorris merged commit fbcd04f into main Jul 13, 2026
12 checks passed
@jonathannorris
jonathannorris deleted the chore/dependabot-alerts branch July 13, 2026 15:29
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.

3 participants