mirror of
https://github.com/anchore/syft.git
synced 2026-03-30 05:33:24 +02:00
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:
parent
d2461a9e0a
commit
22e78c7be1
10
.binny.yaml
10
.binny.yaml
@ -26,7 +26,7 @@ tools:
|
|||||||
# used for linting
|
# used for linting
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
version:
|
version:
|
||||||
want: v2.9.0
|
want: v2.11.2
|
||||||
method: github-release
|
method: github-release
|
||||||
with:
|
with:
|
||||||
repo: golangci/golangci-lint
|
repo: golangci/golangci-lint
|
||||||
@ -42,7 +42,7 @@ tools:
|
|||||||
# used for signing the checksums file at release
|
# used for signing the checksums file at release
|
||||||
- name: cosign
|
- name: cosign
|
||||||
version:
|
version:
|
||||||
want: v3.0.4
|
want: v3.0.5
|
||||||
method: github-release
|
method: github-release
|
||||||
with:
|
with:
|
||||||
repo: sigstore/cosign
|
repo: sigstore/cosign
|
||||||
@ -58,7 +58,7 @@ tools:
|
|||||||
# used to release all artifacts
|
# used to release all artifacts
|
||||||
- name: goreleaser
|
- name: goreleaser
|
||||||
version:
|
version:
|
||||||
want: v2.13.3
|
want: v2.14.2
|
||||||
method: github-release
|
method: github-release
|
||||||
with:
|
with:
|
||||||
repo: goreleaser/goreleaser
|
repo: goreleaser/goreleaser
|
||||||
@ -90,7 +90,7 @@ tools:
|
|||||||
# used for running all local and CI tasks
|
# used for running all local and CI tasks
|
||||||
- name: task
|
- name: task
|
||||||
version:
|
version:
|
||||||
want: v3.48.0
|
want: v3.49.1
|
||||||
method: github-release
|
method: github-release
|
||||||
with:
|
with:
|
||||||
repo: go-task/task
|
repo: go-task/task
|
||||||
@ -98,7 +98,7 @@ tools:
|
|||||||
# used for triggering a release
|
# used for triggering a release
|
||||||
- name: gh
|
- name: gh
|
||||||
version:
|
version:
|
||||||
want: v2.86.0
|
want: v2.87.3
|
||||||
method: github-release
|
method: github-release
|
||||||
with:
|
with:
|
||||||
repo: cli/cli
|
repo: cli/cli
|
||||||
|
|||||||
@ -219,7 +219,7 @@ func (l attestLogFrame) View() string {
|
|||||||
sb := strings.Builder{}
|
sb := strings.Builder{}
|
||||||
|
|
||||||
for _, line := range l.lines {
|
for _, line := range l.lines {
|
||||||
sb.WriteString(fmt.Sprintf(" %s %s\n", l.borderStype.Render("░░"), line))
|
fmt.Fprintf(&sb, " %s %s\n", l.borderStype.Render("░░"), line)
|
||||||
}
|
}
|
||||||
|
|
||||||
return sb.String()
|
return sb.String()
|
||||||
|
|||||||
@ -122,7 +122,7 @@ func formatVersionOptions(nameVersionPairs []string) string {
|
|||||||
for _, name := range sortedAvailableFormats {
|
for _, name := range sortedAvailableFormats {
|
||||||
s.WriteString("\n")
|
s.WriteString("\n")
|
||||||
|
|
||||||
s.WriteString(fmt.Sprintf(" - %s", name))
|
fmt.Fprintf(&s, " - %s", name)
|
||||||
|
|
||||||
if len(availableVersions[name]) > 0 {
|
if len(availableVersions[name]) > 0 {
|
||||||
s.WriteString(" @ ")
|
s.WriteString(" @ ")
|
||||||
|
|||||||
@ -44,7 +44,8 @@ func sbomReader() io.Reader {
|
|||||||
reader = strings.NewReader(sbomContents)
|
reader = strings.NewReader(sbomContents)
|
||||||
} else {
|
} else {
|
||||||
var err error
|
var err error
|
||||||
reader, err = os.Open(os.Args[1])
|
// suppress gosec error: reads from local file system by design
|
||||||
|
reader, err = os.Open(os.Args[1]) //nolint:gosec
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -509,7 +509,7 @@ func decompressLZMA(compressedData []byte, uncompressedSize uint32) ([]byte, err
|
|||||||
|
|
||||||
// construct standard 13-byte LZMA header
|
// construct standard 13-byte LZMA header
|
||||||
header := make([]byte, 13)
|
header := make([]byte, 13)
|
||||||
header[0] = props //nolint:gosec
|
header[0] = props
|
||||||
binary.LittleEndian.PutUint32(header[1:5], dictSize)
|
binary.LittleEndian.PutUint32(header[1:5], dictSize)
|
||||||
binary.LittleEndian.PutUint64(header[5:13], uint64(uncompressedSize))
|
binary.LittleEndian.PutUint64(header[5:13], uint64(uncompressedSize))
|
||||||
|
|
||||||
|
|||||||
@ -376,7 +376,7 @@ out:
|
|||||||
if c != ']' {
|
if c != ']' {
|
||||||
return "", fmt.Errorf("unterminated literal at %d", *i)
|
return "", fmt.Errorf("unterminated literal at %d", *i)
|
||||||
}
|
}
|
||||||
buf.WriteString(fmt.Sprintf("[\"%s\"]", nested.String()))
|
fmt.Fprintf(&buf, "[\"%s\"]", nested.String())
|
||||||
case isLiteral(c):
|
case isLiteral(c):
|
||||||
buf.WriteByte(c)
|
buf.WriteByte(c)
|
||||||
default:
|
default:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user