Repository navigation
Description
Tip
Your pull request is ready to create! 🎉 ✅
Everything is OK—the changes have been pushed to a branch. Please review the protected files, then create the pull request when you are ready.
The original pull request description is below.
Summary
Adds the httpclientnotimeout go/analysis linter. It flags net/http.Client composite literals (&http.Client{} or http.Client{}) that do not set a Timeout field. Such a client can block indefinitely on a stalled connection.
Evidence and gap
The existing httpnoctx linter only flags http.DefaultClient.Do, which is timeout-less. It does not flag &http.Client{} literals that are missing a timeout. A sanity run on ./pkg/cli/... produces one true positive at pkg/cli/mcp_inspect_mcp.go:225, and it was left unchanged.
Changes
pkg/linters/httpclientnotimeout/: analyzer,analysistesttest, and fixture (covers pointer and value literals,Timeoutpresent, a non-net/httptype namedClient, and(nolint/redacted)).pkg/linters/registry.go: registers the analyzer.pkg/linters/README.md,doc.go,spec_test.go,doc_sync_test.go: documentation and sync-test updates (the new analyzer is listed innotYetEnforcedso CI does not enable it until an enforcement audit).
Validation
go build ./pkg/linters/... ./cmd/linters: passes.go test ./pkg/linters/...: passes.go vet ./pkg/linters/httpclientnotimeout/: clean.
Notes
Steering issue #78423 has no comments, so there was no steering feedback to incorporate.
Co-authored-by: Copilot <[email protected]>
Note
Protected files
This patch modifies protected files, which may affect project dependencies, CI/CD pipelines, or agent behaviour.
Protected files
README.md
To route changes like this to a review issue instead of blocking, configure protected-files: fallback-to-issue in your workflow configuration.
Allow intentional protected-file changes
If this workflow is intended to modify these files, add specific filenames or folder prefixes to safe-outputs.create-pull-request.protected-files.exclude in the workflow Markdown frontmatter. For example, to allow .changeset/*, exclude the folder using .changeset/:
safe-outputs:
create-pull-request:
protected-files:
policy: fallback-to-issue
exclude:
- .changeset/Keep your existing policy and exclusions. Folder exclusions use path prefixes, not glob patterns, and allow all files beneath that folder, including subfolders. Other protected files still follow the configured policy. If allowed-files is configured, these paths must also match it. Run gh aw compile after updating the workflow.
Proposed in this workflow run.
- expires on Nov 23, 2026, 9:38 AM UTC-08:00
Generated by Linter Miner · copilot · routed: haiku55 high · ~31 AIC · ⌖ ~2 AIC · ⊞ 4.6K · ◷
Activity
github-actions commentedon Nov 17, 2026
🍪 Issue Monster selected this for Copilot
I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, Copilot will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪