mirror of
https://github.com/siderolabs/talos.git
synced 2025-12-27 04:11:50 +01:00
Move stuff into `tools/go.mod`. Also fix linting issues on the way (updating golangci-lint). Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
11 lines
305 B
Bash
Executable File
11 lines
305 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
SYFT_FORMAT_PRETTY=1 SYFT_FORMAT_SPDX_JSON_DETERMINISTIC_UUID=1 \
|
|
go tool \
|
|
github.com/anchore/syft/cmd/syft \
|
|
scan --from dir "$1" \
|
|
--select-catalogers "+sbom-cataloger,go" \
|
|
--source-name "$NAME" --source-version "$TAG" \
|
|
-o spdx-json > "/rootfs/usr/share/spdx/$2"
|