chore: publish IntegraCI build modules a11ec75d3e09

This commit is contained in:
dhimaz0445 committed 2026-11-11 03:41:55 +00:00
1 parent 694710104a
commit 3c2b80914e
78 files changed
+4982 -405

No files matched your search

+3 -3
View File
@@ -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)