syft
Generate a software bill of materials (SBOM) using the syft tool
Installation
dagger install github.com/fluent-ci-templates/syft-pipeline@v0.4.0Entrypoint
Return Type
Syft Example
dagger -m github.com/fluent-ci-templates/syft-pipeline@df565f93d4fcb72ba8561549f66bfd65380929ac call \
func (m *MyModule) Example() *dagger.Syft {
return dag.
Syft()
}@function
def example() -> dagger.Syft:
return (
dag.syft()
)@func()
example(): Syft {
return dag
.syft()
}Types
Syft 🔗
sbom() 🔗
Generate a software bill of materials
Return Type
File !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | The context to run the job in |
| outputFile | String ! | - | The name of the output file |
| image | String | - | The image to run the job in |
| outputFormat | String | - | The output format |
Example
dagger -m github.com/fluent-ci-templates/syft-pipeline@df565f93d4fcb72ba8561549f66bfd65380929ac call \
sbom --src DIR_PATH --output-file stringfunc (m *MyModule) Example(src *dagger.Directory, outputFile string) *dagger.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)
}