chore(deps): update tools to latest versions (#4630)

* chore(deps): update tools to latest versions

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* chore(lint): fix errors in new golangci-lint

Two fixes:

First, replace sb.WriteString(fmt.Sprintf(...)) with fmt.Fprintf(&sb, ...)
Second, suppress errors where we read from the local file system at a
user provided path. This is a CLI tool, and reads from user provided
paths on the local file system by design.

Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>

---------

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
Co-authored-by: spiffcs <32073428+spiffcs@users.noreply.github.com>
Co-authored-by: Will Murphy <willmurphyscode@users.noreply.github.com>
This commit is contained in:
anchore-actions-token-generator[bot]
2026-03-09 12:17:09 -04:00
committed by GitHub
co-authored by spiffcs Will Murphy
parent d2461a9e0a
commit 22e78c7be1
6 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -509,7 +509,7 @@ func decompressLZMA(compressedData []byte, uncompressedSize uint32) ([]byte, err
// construct standard 13-byte LZMA header
header := make([]byte, 13)
header[0] = props //nolint:gosec
header[0] = props
binary.LittleEndian.PutUint32(header[1:5], dictSize)
binary.LittleEndian.PutUint64(header[5:13], uint64(uncompressedSize))
+1 -1
View File
@@ -376,7 +376,7 @@ out:
if c != ']' {
return "", fmt.Errorf("unterminated literal at %d", *i)
}
buf.WriteString(fmt.Sprintf("[\"%s\"]", nested.String()))
fmt.Fprintf(&buf, "[\"%s\"]", nested.String())
case isLiteral(c):
buf.WriteByte(c)
default: