You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(deps): update dependency golangci/golangci-lint to v2.11.3 (#4261)
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
|
[golangci/golangci-lint](https://redirect.github.com/golangci/golangci-lint)
| minor | `v2.10.1` → `v2.11.3` |
|
[golangci/golangci-lint](https://redirect.github.com/golangci/golangci-lint)
| minor | `2.10.1` → `2.11.3` |
---
> [!WARNING]
> Some dependencies could not be looked up. Check the [Dependency
Dashboard](../issues/370) for more information.
---
### Release Notes
<details>
<summary>golangci/golangci-lint (golangci/golangci-lint)</summary>
###
[`v2.11.3`](https://redirect.github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v2113)
[Compare
Source](https://redirect.github.com/golangci/golangci-lint/compare/v2.11.2...v2.11.3)
*Released on 2026-03-10*
1. Linters bug fixes
- `gosec`: from v2.24.7 to
[`619ce21`](https://redirect.github.com/golangci/golangci-lint/commit/619ce2117e08)
###
[`v2.11.2`](https://redirect.github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v2112)
[Compare
Source](https://redirect.github.com/golangci/golangci-lint/compare/v2.11.1...v2.11.2)
*Released on 2026-03-07*
1. Fixes
- `fmt`: fix error when using the `fmt` command with explicit paths.
###
[`v2.11.1`](https://redirect.github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v2111)
[Compare
Source](https://redirect.github.com/golangci/golangci-lint/compare/v2.11.0...v2.11.1)
*Released on 2026-03-06*
Due to an error related to AUR, some artifacts of the v2.11.0 release
have not been published.
This release contains the same things as v2.11.0.
###
[`v2.11.0`](https://redirect.github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v2110)
[Compare
Source](https://redirect.github.com/golangci/golangci-lint/compare/v2.10.1...v2.11.0)
*Released on 2026-03-06*
1. Linters new features or changes
- `errcheck`: from 1.9.0 to 1.10.0 (exclude `crypto/rand.Read` by
default)
- `gosec`: from 2.23.0 to 2.24.6 (new rules: `G113`, `G118`, `G119`,
`G120`, `G121`, `G122`, `G123`, `G408`, `G707`)
- `noctx`: from 0.4.0 to 0.5.0 (new detection:
`httptest.NewRequestWithContext`)
- `prealloc`: from 1.0.2 to 1.1.0
- `revive`: from 1.14.0 to 1.15.0 (⚠️ Breaking change: package-related
checks moved from `var-naming` to a new rule `package-naming`)
2. Linters bug fixes
- `gocognit`: from 1.2.0 to 1.2.1
- `gosec`: from 2.24.6 to 2.24.7
- `unqueryvet`: from 1.5.3 to 1.5.4
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "before 10am on friday" in timezone
Europe/London, Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/overmindtech/workspace).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My41OS4wIiwidXBkYXRlZEluVmVyIjoiNDMuNTkuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Mostly a tooling upgrade, but it also changes runtime behavior by
enforcing request body size limits on several admin/API handlers, which
could reject previously-accepted large submissions.
>
> **Overview**
> Updates `golangci-lint` to `v2.11.3` in both the devcontainer and CI.
>
> To satisfy new linter rules, this removes/adjusts many
`//nolint:gosec` annotations, switches multiple tests to
`httptest.NewRequestWithContext`, and adds/updates a few targeted
suppressions (e.g. `context.WithCancel`, `context.WithTimeout`).
>
> Adds explicit `http.MaxBytesReader` limits on various Area51 admin
handlers (typically 10MB; 200MB for snapshot/blast-radius uploads),
reducing risk of oversized request bodies at the cost of stricter input
limits.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
aa6ee6c4ad731a9c1dd0433d3f2abb4402a4ca5f. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: carabasdaniel <[email protected]>
GitOrigin-RevId: 4cf21c8a7518ea44685543934946dc11213ab426
describeBytes, err:=exec.CommandContext(ctx, "git", "describe", "--long").Output()//nolint:gosec // G702: all arguments are hardcoded string literals; no user input reaches this command
c:=exec.CommandContext(ctx, "terraform", args...)//nolint:gosec // G702: args are CLI arguments from the local user who invoked this command; this tool runs on the user's own machine
154
+
c:=exec.CommandContext(ctx, "terraform", args...)
155
155
156
156
// remove go's default process cancel behaviour, so that terraform has a
157
157
// chance to gracefully shutdown when ^C is pressed. Otherwise the
c:=exec.CommandContext(ctx, "terraform", args...)//nolint:gosec // G702: args are CLI arguments from the local user who invoked this command; this tool runs on the user's own machine
183
+
c:=exec.CommandContext(ctx, "terraform", args...)
184
184
185
185
// remove go's default process cancel behaviour, so that terraform has a
186
186
// chance to gracefully shutdown when ^C is pressed. Otherwise the
tfPlanJsonCmd:=exec.CommandContext(ctx, "terraform", "show", "-json", planFile)//nolint:gosec // G702: "terraform", "show", "-json" are hardcoded; planFile is from the local user's CLI -out flag
_, err=fmt.Fprintf(resourceExtractionResults, " %v\n", line)//nolint:gosec // G203: resourceExtractionResults is a pterm.MultiPrinter writer (terminal UI), not an http.ResponseWriter; no XSS vector
tfPlanTextCmd:=exec.CommandContext(ctx, "terraform", "show", planFile)//nolint:gosec // G702: "terraform" and "show" are hardcoded; planFile is from the local user's CLI -out flag
plan, err:=os.ReadFile(planFile)//nolint:gosec // G703: planFile is from the local user's CLI args; reading their chosen file is the intended behavior of this CLI tool
517
+
plan, err:=os.ReadFile(planFile)
518
518
iferr!=nil {
519
519
return"", fmt.Errorf("failed to read plan file (%v): %w", planFile, err)
ClientSecretstring//nolint:gosec // G101 (hardcoded secret): config field name, not a credential value; populated from env vars and only used in OAuth token exchange
res, err:=tracing.HTTPClient().Do(req)//nolint:gosec // G107 (SSRF): URL is built from the app base URL (CLI config) + hardcoded path /api/public/instance-data
61
+
res, err:=tracing.HTTPClient().Do(req)
62
62
iferr!=nil {
63
63
returnOvermindInstance{}, fmt.Errorf("could not fetch instance-data: %w", err)
0 commit comments