Dagger
Search

syft

Generate a software bill of materials (SBOM) using the syft tool

Installation

dagger install github.com/fluent-ci-templates/syft-pipeline@v0.4.0

Entrypoint

Return Type
Syft
Example
dagger -m github.com/fluent-ci-templates/syft-pipeline@df565f93d4fcb72ba8561549f66bfd65380929ac call \
func (m *myModule) example() *Syft  {
	return dag.
			Syft()
}
@function
def example() -> dag.Syft:
	return (
		dag.syft()
	)
@func()
example(): Syft {
	return dag
		.syft()
}

Types

Syft 🔗

sbom() 🔗

Generate a software bill of materials

Return Type
File !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-The context to run the job in
outputFileString !-The name of the output file
imageString -The image to run the job in
outputFormatString -The output format
Example
dagger -m github.com/fluent-ci-templates/syft-pipeline@df565f93d4fcb72ba8561549f66bfd65380929ac call \
 sbom --src DIR_PATH --output-file string
func (m *myModule) example(src *Directory, outputFile string) *File  {
	return dag.
			Syft().
			Sbom(src, outputFile)
}
@function
def example(src: dagger.Directory, output_file: str) -> dagger.File:
	return (
		dag.syft()
		.sbom(src, output_file)
	)
@func()
example(src: Directory, outputFile: string): File {
	return dag
		.syft()
		.sbom(src, outputFile)
}