grype
This module lets you security scan a container image using Grype.For more info and sample usage, check the readme: https://github.com/lukemarsden/dagger-grype
Installation
dagger install github.com/lukemarsden/dagger-grype@v0.1.4
Entrypoint
Return Type
Grype
Example
dagger -m github.com/lukemarsden/dagger-grype@96fd5ff19428d41db1a8a1c71bd67252b498e927 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 🔗
testContainerImage() 🔗
example usage: “dagger call test-container-image –image alpine:latest”
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
image | String ! | - | No description provided |
Example
dagger -m github.com/lukemarsden/dagger-grype@96fd5ff19428d41db1a8a1c71bd67252b498e927 call \
test-container-image --image string
func (m *myModule) example(ctx context.Context, image string) string {
return dag.
Grype().
TestContainerImage(ctx, image)
}
@function
async def example(image: str) -> str:
return await (
dag.grype()
.test_container_image(image)
)
@func()
async example(image: string): Promise<string> {
return dag
.grype()
.testContainerImage(image)
}
testContainer() 🔗
example usage: from dagger code where you have a Container object: TestContainer(container)
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | No description provided |
Example
dagger -m github.com/lukemarsden/dagger-grype@96fd5ff19428d41db1a8a1c71bd67252b498e927 call \
test-container --container IMAGE:TAG
func (m *myModule) example(ctx context.Context, container *Container) string {
return dag.
Grype().
TestContainer(ctx, container)
}
@function
async def example(container: dagger.Container) -> str:
return await (
dag.grype()
.test_container(container)
)
@func()
async example(container: Container): Promise<string> {
return dag
.grype()
.testContainer(container)
}