chore(deps): bump securego/gosec from 2.22.10 to 2.22.11 (#2110)

* chore(deps): bump securego/gosec from 2.22.10 to 2.22.11

Bumps [securego/gosec](https://github.com/securego/gosec) from 2.22.10 to 2.22.11.
- [Release notes](https://github.com/securego/gosec/releases)
- [Commits](https://github.com/securego/gosec/compare/v2.22.10...v2.22.11)

---
updated-dependencies:
- dependency-name: securego/gosec
  dependency-version: 2.22.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Ignore invalid warnings

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com>
This commit is contained in:
dependabot[bot]
2025-12-18 16:34:33 +01:00
committed by GitHub
parent fe7e70d901
commit fb6b6d160c
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -16,6 +16,6 @@ jobs:
steps:
- uses: actions/checkout@v6
- name: Run Gosec Security Scanner
uses: securego/gosec@v2.22.10
uses: securego/gosec@v2.22.11
with:
args: '-exclude=G103,G104,G304,G402 ./...'
+1 -1
View File
@@ -2718,7 +2718,7 @@ func acquireByteReader(ctxP **RequestCtx) (*bufio.Reader, error) {
}
ctx.fbr.c = c
ctx.fbr.ch = b[0]
ctx.fbr.ch = b[0] // #nosec G602
ctx.fbr.byteRead = false
r := acquireReader(ctx)
r.Reset(&ctx.fbr)
+2 -2
View File
@@ -72,7 +72,7 @@ func kernelVersion() (int, int) {
} else {
// Note that we're assuming N.N.N here. If we see anything else we are likely to
// mis-parse it.
values[vi] = value
values[vi] = value // #nosec G602
vi++
if vi >= len(values) {
break
@@ -85,7 +85,7 @@ func kernelVersion() (int, int) {
case 1:
return values[0], 0
case 2:
return values[0], values[1]
return values[0], values[1] // #nosec G602
}
return 0, 0
}