chore: publish IntegraCI build modules a11ec75d3e09
This commit is contained in:
1 parent
694710104a
commit
3c2b80914e
78 files changed
+4982
-405
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sbom",
|
||||
"engineVersion": "v0.21.7",
|
||||
"engineVersion": "v0.21.11",
|
||||
"sdk": {
|
||||
"source": "go"
|
||||
},
|
||||
|
||||
+3
-3
@@ -85,7 +85,7 @@ func (m *Sbom) Generate(
|
||||
// anchore/syft, CycloneDX JSON. Source dir or image. The anchore/syft
|
||||
// image is distroless (no shell), so copy the syft binary into alpine
|
||||
// — which has sh — for the mkdir + output redirect.
|
||||
syftBin := dag.Container().From("anchore/syft:v1.18.1").File("/syft")
|
||||
syftBin := dag.Container().From("anchore/syft:v1.56.0").File("/syft")
|
||||
return syftRegistryAuth(syftRegistryEnv(scanInput(dag.Container().
|
||||
From("alpine:3.20").
|
||||
WithFile("/usr/local/bin/syft", syftBin), source, auth), imageRef, registryInsecure), auth, registryPassword).
|
||||
@@ -98,7 +98,7 @@ func (m *Sbom) Generate(
|
||||
case "spdx-tools":
|
||||
// Practical SPDX generator: syft emitting SPDX JSON. Source or image.
|
||||
// anchore/syft is distroless; copy the binary into alpine for a shell.
|
||||
syftBin := dag.Container().From("anchore/syft:v1.18.1").File("/syft")
|
||||
syftBin := dag.Container().From("anchore/syft:v1.56.0").File("/syft")
|
||||
return syftRegistryAuth(syftRegistryEnv(scanInput(dag.Container().
|
||||
From("alpine:3.20").
|
||||
WithFile("/usr/local/bin/syft", syftBin), source, auth), imageRef, registryInsecure), auth, registryPassword).
|
||||
@@ -133,7 +133,7 @@ func (m *Sbom) Generate(
|
||||
target = imageRef
|
||||
}
|
||||
ctr := scanInput(dag.Container().
|
||||
From("aquasec/trivy:0.58.1").
|
||||
From("aquasec/trivy:0.76.1").
|
||||
// Persist Trivy's vulnerability DB across runs (avoids re-downloading it).
|
||||
WithMountedCache("/root/.cache/trivy", dag.CacheVolume("trivy-db")), source, auth)
|
||||
script := fmt.Sprintf("mkdir -p /out && trivy %s --format cyclonedx --output /out/sbom.cdx.json %s", subcmd, target)
|
||||
|
||||
Reference in new issue
Block a user