snyk
No long description provided.
Installation
dagger install github.com/lukemarsden/dagger-snyk@v0.2.1
Entrypoint
Return Type
Snyk
Example
dagger -m github.com/lukemarsden/dagger-snyk@174585fb9cb05016db9855d274c1563c5df617d8 call \
func (m *myModule) example() *Snyk {
return dag.
Snyk()
}
@function
def example() -> dag.Snyk:
return (
dag.snyk()
)
@func()
example(): Snyk {
return dag
.snyk()
}
Types
Snyk 🔗
testCode() 🔗
example usage: “dagger call test-code –src . –token env:SNYK_TOKEN”
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
token | Secret ! | - | No description provided |
severityThreshold | String | - | No description provided |
Example
dagger -m github.com/lukemarsden/dagger-snyk@174585fb9cb05016db9855d274c1563c5df617d8 call \
test-code --src DIR_PATH --token env:MYSECRET
func (m *myModule) example(ctx context.Context, src *Directory, token *Secret) string {
return dag.
Snyk().
TestCode(ctx, src, token)
}
@function
async def example(src: dagger.Directory, token: dagger.Secret) -> str:
return await (
dag.snyk()
.test_code(src, token)
)
@func()
async example(src: Directory, token: Secret): Promise<string> {
return dag
.snyk()
.testCode(src, token)
}
testIac() 🔗
example usage: “dagger call test-iac –src . –token env:SNYK_TOKEN”
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
token | Secret ! | - | No description provided |
severityThreshold | String | - | No description provided |
Example
dagger -m github.com/lukemarsden/dagger-snyk@174585fb9cb05016db9855d274c1563c5df617d8 call \
test-iac --src DIR_PATH --token env:MYSECRET
func (m *myModule) example(ctx context.Context, src *Directory, token *Secret) string {
return dag.
Snyk().
TestIac(ctx, src, token)
}
@function
async def example(src: dagger.Directory, token: dagger.Secret) -> str:
return await (
dag.snyk()
.test_iac(src, token)
)
@func()
async example(src: Directory, token: Secret): Promise<string> {
return dag
.snyk()
.testIac(src, token)
}
testContainer() 🔗
example usage: “dagger call test-container –image alpine:latest –token env:SNYK_TOKEN”
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
image | String ! | - | No description provided |
token | Secret ! | - | No description provided |
Example
dagger -m github.com/lukemarsden/dagger-snyk@174585fb9cb05016db9855d274c1563c5df617d8 call \
test-container --image string --token env:MYSECRET
func (m *myModule) example(ctx context.Context, image string, token *Secret) string {
return dag.
Snyk().
TestContainer(ctx, image, token)
}
@function
async def example(image: str, token: dagger.Secret) -> str:
return await (
dag.snyk()
.test_container(image, token)
)
@func()
async example(image: string, token: Secret): Promise<string> {
return dag
.snyk()
.testContainer(image, token)
}