Skip to content

build(deps): bump github.com/golangci/golangci-lint/v2 from 2.8.0 to 2.10.1 in /tools - #429

Merged
openshift-merge-bot[bot] merged 6 commits into
mainfrom
dependabot/go_modules/tools/github.com/golangci/golangci-lint/v2-2.10.1
Jul 6, 2026
Merged

build(deps): bump github.com/golangci/golangci-lint/v2 from 2.8.0 to 2.10.1 in /tools#429
openshift-merge-bot[bot] merged 6 commits into
mainfrom
dependabot/go_modules/tools/github.com/golangci/golangci-lint/v2-2.10.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Feb 18, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/golangci/golangci-lint/v2 from 2.8.0 to 2.10.1.

Release notes

Sourced from github.com/golangci/golangci-lint/v2's releases.

v2.10.1

golangci-lint is a free and open-source project built by volunteers.

If you value it, consider supporting us, the maintainers and linter authors.

We appreciate it! ❤️

For key updates, see the changelog.

Changelog

  • 31356b6d5acb466c4411411895352565306ebbf8 fix: make markDepsForAnalyzingSource recursive to fix buildssa panic (#6376)

v2.10.0

golangci-lint is a free and open-source project built by volunteers.

If you value it, consider supporting us, the maintainers and linter authors.

We appreciate it! ❤️

For key updates, see the changelog.

Changelog

  • 87a60c93b3304014ffd5853112e5ca1bac570a2c build(deps): bump github.com/godoc-lint/godoc-lint from 0.11.1 to 0.11.2 (#6372)
  • f9b0a754aec7d1167df94bcac71e49500d4489d6 build(deps): bump github.com/nunnatsa/ginkgolinter from 0.22.0 to 0.23.0 (#6368)
  • abdeb8dce5d479f0750015ce5800390984ada13f build(deps): bump github.com/securego/gosec/v2 from 2.22.11 to 2.23.0 (#6366)
  • d9d4b1928f1fc0c0d610742b56b622dc7daf4aa4 build(deps): bump honnef.co/go/tools from 0.6.1 to 0.7.0 (#6367)

v2.9.0

golangci-lint is a free and open-source project built by volunteers.

If you value it, consider supporting us, the maintainers and linter authors.

We appreciate it! ❤️

For key updates, see the changelog.

Changelog

  • 7bcbbbf04e2dff939a1383b44391d33949bcbfab build(deps): bump github.com/MirrexOne/unqueryvet from 1.4.0 to 1.5.0 (#6320)
  • 34a7735dcafe57189faa191994faf3d546d9065e build(deps): bump github.com/MirrexOne/unqueryvet from 1.5.0 to 1.5.3 (#6332)
  • 4fd6c246757e682f823d73ed4c34db5987571966 build(deps): bump github.com/alecthomas/chroma/v2 from 2.21.1 to 2.22.0 (#6308)
  • bc9df8bab4d4bb1e809326fb78d18321b4c86bc1 build(deps): bump github.com/alecthomas/chroma/v2 from 2.22.0 to 2.23.0 (#6328)
  • 2ed365c7944938b15a969dd36be9637b6c9c0d9e build(deps): bump github.com/alecthomas/chroma/v2 from 2.23.0 to 2.23.1 (#6338)
  • 935cc2f1eb985f958f3e09ed9fbab7b008454ba3 build(deps): bump github.com/alexkohler/prealloc from 1.0.1 to 1.0.2 (#6307)
  • a0a46d1c5f4333f10c702ac035534f4c81655316 build(deps): bump github.com/bombsimon/wsl/v5 from 5.3.0 to 5.6.0 (#6333)
  • d79ce2f9d50dd7825ac18629e2ddd831190c195f build(deps): bump github.com/ghostiam/protogetter from 0.3.18 to 0.3.19 (#6326)
  • 1d3d007777bd3381374e22f52e0c62e0bf282300 build(deps): bump github.com/ghostiam/protogetter from 0.3.19 to 0.3.20 (#6346)
  • a41092538295644b731c139a3a29a30c26265001 build(deps): bump github.com/go-viper/mapstructure/v2 from 2.4.0 to 2.5.0 (#6318)
  • 353cec6f307fe6c69ea1d584a6859efeafc2c2bc build(deps): bump github.com/golangci/golines from 0.14.0 to 0.15.0 (#6354)
  • 645ae5b29b795d6dc23d387118890ec12a38319e build(deps): bump github.com/golangci/misspell from 0.7.0 to 0.8.0 (#6358)
  • 9abb996cafd57c8a7c11d137cd4a300ce8379530 build(deps): bump github.com/mgechev/revive from 1.13.0 to 1.14.0 (#6359)

... (truncated)

Changelog

Sourced from github.com/golangci/golangci-lint/v2's changelog.

v2.10.1

Released on 2026-02-17

  1. Fixes
    • buildssa panic

v2.10.0

Released on 2026-02-17

  1. Linters new features or changes
    • ginkgolinter: from 0.22.0 to 0.23.0
    • gosec: from 2.22.11 to 2.23.0 (new rules: G117, G602, G701, G702, G703, G704, G705, G706)
    • staticcheck: from 0.6.1 to 0.7.0
  2. Linters bug fixes
    • godoclint: from 0.11.1 to 0.11.2

v2.9.0

Released on 2026-02-10

  1. Enhancements
    • 🎉 go1.26 support
  2. Linters new features or changes
    • arangolint: from 0.3.1 to 0.4.0 (new rule: detect potential query injections)
    • ginkgolinter: from 0.21.2 to 0.22.0 (support for wrappers)
    • golines: from 0.14.0 to 0.15.0
    • misspell: from 0.7.0 to 0.8.0
    • revive: from v1.13.0 to v1.14.0 (new rules: epoch-naming, use-slices-sort)
    • unqueryvet: from 1.4.0 to 1.5.3 (new options: check-n1, check-sql-injection, check-tx-leaks, allow, custom-rules)
    • wsl_v5: from 5.3.0 to 5.6.0 (new rule: after-block)
  3. Linters bug fixes
    • modernize: from 0.41.0 to 0.42.0
    • prealloc: from 1.0.1 to 1.0.2
    • protogetter: from 0.3.18 to 0.3.20
  4. Misc.
    • Log information about files when configuration verification
    • Emit an error when no linters enabled
    • Do not collect VCS information when loading code
Commits
  • 5d1e709 chore: prepare release
  • d5f2de2 dev: refactor to use waitgroup.Go (#6377)
  • 31356b6 fix: make markDepsForAnalyzingSource recursive to fix buildssa panic (#6376)
  • cb54f49 docs: update GitHub Action assets (#6374)
  • c70f78e docs: update documentation assets (#6373)
  • 95dcb68 chore: prepare release
  • 87a60c9 build(deps): bump github.com/godoc-lint/godoc-lint from 0.11.1 to 0.11.2 (#6372)
  • d9d4b19 build(deps): bump honnef.co/go/tools from 0.6.1 to 0.7.0 (#6367)
  • ab19213 chore: improve the support of large numbers of packages (FilenameUnadjuster) ...
  • abdeb8d build(deps): bump github.com/securego/gosec/v2 from 2.22.11 to 2.23.0 (#6366)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Feb 18, 2026
@openshift-ci
openshift-ci Bot requested review from anjannath and nirs February 18, 2026 12:24
@openshift-ci

openshift-ci Bot commented Feb 18, 2026

Copy link
Copy Markdown

Hi @dependabot[bot]. Thanks for your PR.

I'm waiting for a crc-org member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@vyasgun
vyasgun force-pushed the dependabot/go_modules/tools/github.com/golangci/golangci-lint/v2-2.10.1 branch from 997839c to 9a9a9ad Compare February 23, 2026 15:23
Comment thread test/osprovider.go Outdated
xzCutName, _ := strings.CutSuffix(filepath.Base(file.Name()), ".xz")
outPath := filepath.Join(targetDir, xzCutName)
out, err := os.Create(outPath)
out, err := os.Create(outPath) // #nosec G703 -- file is created in a temporary directory

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

G703 is "Path traversal via taint analysis" https://github.com/securego/gosec/blob/master/RULES.md

As I understand it, if gosec warns about this, this means it thinks the user could provide a specially crafted filename which would get the code to create the file outside of the temporary directory.
Maybe this is a false positive regardless, but I don’t think the fact that this is a temporary directory explains why.

Comment thread pkg/config/virtio.go
}
default:
fmt.Fprintf(&builder, ",fd=%d", dev.Socket.Fd())
fmt.Fprintf(&builder, ",fd=%d", dev.Socket.Fd()) // #nosec G705 -- CLI arg, not HTML

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

A cli arg is still user provided and could be abused?

@dependabot @github

dependabot Bot commented on behalf of github Mar 9, 2026

Copy link
Copy Markdown
Contributor Author

A newer version of github.com/golangci/golangci-lint/v2 exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

dependabot Bot and others added 6 commits July 3, 2026 18:30
Bumps [github.com/golangci/golangci-lint/v2](https://github.com/golangci/golangci-lint) from 2.8.0 to 2.10.1.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/main/CHANGELOG.md)
- [Commits](golangci/golangci-lint@v2.8.0...v2.10.1)

---
updated-dependencies:
- dependency-name: github.com/golangci/golangci-lint/v2
  dependency-version: 2.10.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
This fixes this linter error:
```
pkg/config/bootloader.go:122:2: QF1012: Use fmt.Fprintf(...) instead of WriteString(fmt.Sprintf(...)) (staticcheck)
        builder.WriteString(fmt.Sprintf(",variable-store=%s", bootloader.EFIVariableStorePath))
        ^
```
This fixes
```
pkg/config/virtio.go:480:14: G705: XSS via taint analysis (gosec)
                fmt.Fprintf(&builder, ",fd=%d", dev.Socket.Fd())
                           ^
```

This not generating web output, but a command line argument, and it’s
only possible to get an integer value.
This fixes this linter error:
```
pkg/config/virtio.go:518:35: G115: integer overflow conversion int -> uintptr (gosec)
                        dev.Socket = os.NewFile(uintptr(fd), "vfkit virtio-net socket")
                                                       ^
```
This fixes:
```
cmd/vfkit/main.go:422:12: G703: Path traversal via taint analysis (gosec)
                os.Remove(isoFile.Name())

test/osprovider.go:81:23: G703: Path traversal via taint analysis (gosec)
        out, err := os.Create(outPath)
                             ^
```

The one in main.go is a false positive.
The one in osprovider.go is also most likely not an actual problem, but
we can be sure there are no problems by using `os.Root` for the file
handling.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
The cloud-init test uses a fedora image. With the release of f44, f42
images have been deleted, which leads to CI failures.

Might still be better to use
https://gitlab.com/fedora/websites-apps/fedora-websites/cms/fedoraproject.org/-/blob/main/content/release.yml?ref_type=heads
or some similar file to get the version/rc_version of the latest fedora release.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
@cfergeau
cfergeau force-pushed the dependabot/go_modules/tools/github.com/golangci/golangci-lint/v2-2.10.1 branch from 9a9a9ad to 35102ca Compare July 3, 2026 16:31
@cfergeau

cfergeau commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

I’ve split the commits to fix one issue per commit, and to have the error messages in the commit log.
I’ve handled the G703 errors differently.
And there’s an unrelated commit which will be needed for CI to be green.

@vyasgun please take a look before I merge this.

@vyasgun

vyasgun commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

@cfergeau the changes look good to me.

/approve
/lgtm

@openshift-ci openshift-ci Bot added the approved label Jul 6, 2026
@openshift-ci

openshift-ci Bot commented Jul 6, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vyasgun

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot
openshift-merge-bot Bot merged commit e910141 into main Jul 6, 2026
7 checks passed
@dependabot
dependabot Bot deleted the dependabot/go_modules/tools/github.com/golangci/golangci-lint/v2-2.10.1 branch July 6, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved dependencies Pull requests that update a dependency file go Pull requests that update Go code lgtm needs-ok-to-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants