Skip to content

fix(lint): resolve golangci-lint errors from updated gosec rules#2590

Merged
dopey merged 1 commit intomasterfrom
max/lint
Mar 11, 2026
Merged

fix(lint): resolve golangci-lint errors from updated gosec rules#2590
dopey merged 1 commit intomasterfrom
max/lint

Conversation

@dopey
Copy link
Copy Markdown
Contributor

@dopey dopey commented Mar 11, 2026

Remove 47 stale //nolint:gosec directives that are no longer needed after gosec rule changes (nolintlint flagged them as unused). Add //nolint:gosec annotations for 5 new findings: G117 on config struct marshaling (password fields by design), G115 on intentional uint->byte truncation in SCEP OID encoding, and G704 SSRF taint on the user-configured CA HTTP client.

Remove 47 stale //nolint:gosec directives that are no longer needed
after gosec rule changes (nolintlint flagged them as unused). Add
//nolint:gosec annotations for 5 new findings: G117 on config struct
marshaling (password fields by design), G115 on intentional uint->byte
truncation in SCEP OID encoding, and G704 SSRF taint on the
user-configured CA HTTP client.

Co-Authored-By: Claude <[email protected]>
@github-actions github-actions Bot added the needs triage Waiting for discussion / prioritization by team label Mar 11, 2026
Copy link
Copy Markdown
Contributor

@maraino maraino left a comment

Choose a reason for hiding this comment

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

lgtm

@dopey dopey merged commit 01c8796 into master Mar 11, 2026
18 checks passed
@dopey dopey deleted the max/lint branch March 11, 2026 03:40
@hslatman hslatman added this to the v0.29.1 milestone Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs triage Waiting for discussion / prioritization by team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants