Skip to content

Add gosec #nosec annotations to fix lint errors - #3848

Merged
aponcedeleonch merged 1 commit into
mainfrom
fix/gosec-lint-nosec-annotations
Feb 17, 2026
Merged

aponcedeleonch merged 1 commit into
mainfrom
fix/gosec-lint-nosec-annotations

Conversation

@aponcedeleonch

Copy link
Copy Markdown
Member

Suppress gosec false positives across the codebase by adding #nosec annotations with explanatory comments following the existing codebase pattern. The annotations cover SSRF (G704), path traversal (G703), XSS (G705), and secret pattern (G117) warnings where the flagged code is safe by design.

golangci-lint updated its version to latest (2.10.0) and started causing this issues

Suppress gosec false positives across the codebase by adding #nosec
annotations with explanatory comments following the existing codebase
pattern. The annotations cover SSRF (G704), path traversal (G703),
XSS (G705), and secret pattern (G117) warnings where the flagged
code is safe by design.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@aponcedeleonch
aponcedeleonch merged commit 54d55a1 into main Feb 17, 2026
22 checks passed
@aponcedeleonch
aponcedeleonch deleted the fix/gosec-lint-nosec-annotations branch February 17, 2026 15:09
@codecov

codecov Bot commented Feb 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 63.46154% with 19 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.81%. Comparing base (c0924fd) to head (a48d124).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
pkg/container/docker/sdk/client_unix.go 20.00% 8 Missing ⚠️
pkg/registry/api/client.go 0.00% 4 Missing ⚠️
pkg/runner/env.go 0.00% 2 Missing ⚠️
pkg/api/v1/workloads.go 0.00% 1 Missing ⚠️
pkg/secrets/factory.go 0.00% 1 Missing ⚠️
pkg/transport/proxy/httpsse/http_proxy.go 0.00% 0 Missing and 1 partial ⚠️
pkg/transport/proxy/streamable/streamable_proxy.go 0.00% 0 Missing and 1 partial ⚠️
pkg/updates/client.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3848      +/-   ##
==========================================
+ Coverage   66.71%   66.81%   +0.09%     
==========================================
  Files         443      444       +1     
  Lines       43847    44065     +218     
==========================================
+ Hits        29254    29440     +186     
- Misses      12306    12317      +11     
- Partials     2287     2308      +21     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Small PR: 100-299 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants