Dagger
Search

grype

This module provides a set of functions to scan a directory or image for vulnerabilities using Grype.

Installation

dagger install github.com/fluent-ci-templates/grype-pipeline@v0.5.0

Entrypoint

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

Types

Grype 🔗

scan() 🔗

Scan a directory or image for vulnerabilities

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-The context directory
imageString -The image to scan
failOnString -No description provided
Example
dagger -m github.com/fluent-ci-templates/grype-pipeline@eb78a6de2b0f163abac4188e53333536d84a4692 call \
 scan --src DIR_PATH
func (m *myModule) example(ctx context.Context, src *Directory) string  {
	return dag.
			Grype().
			Scan(ctx, src)
}
@function
async def example(src: dagger.Directory) -> str:
	return await (
		dag.grype()
		.scan(src)
	)
@func()
async example(src: Directory): Promise<string> {
	return dag
		.grype()
		.scan(src)
}