Dagger
Search

snyk

No long description provided.

Installation

dagger install github.com/rropen/dagger-snyk@5293d766b64c38bcac423f6d3b008a03a17af9f0

Entrypoint

Return Type
Snyk
Example
dagger -m github.com/rropen/dagger-snyk@5293d766b64c38bcac423f6d3b008a03a17af9f0 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 🔗

snykTest() 🔗

example usage: “dagger call snyk-test –src . –token env:SNYK_TOKEN”

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
tokenSecret !-No description provided
severityThresholdString -No description provided
orgString -No description provided
policyPath[String ! ] -No description provided
snykImageTagString -No description provided
Example
dagger -m github.com/rropen/dagger-snyk@5293d766b64c38bcac423f6d3b008a03a17af9f0 call \
 snyk-test --src DIR_PATH --token env:MYSECRET
func (m *myModule) example(ctx context.Context, src *Directory, token *Secret) string  {
	return dag.
			Snyk().
			SnykTest(ctx, src, token)
}
@function
async def example(src: dagger.Directory, token: dagger.Secret) -> str:
	return await (
		dag.snyk()
		.snyk_test(src, token)
	)
@func()
async example(src: Directory, token: Secret): Promise<string> {
	return dag
		.snyk()
		.snykTest(src, token)
}

snykCodeTest() 🔗

example usage: “dagger call snyk-code-test –src . –token env:SNYK_TOKEN”

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
tokenSecret !-No description provided
severityThresholdString -No description provided
orgString -No description provided
policyPath[String ! ] -No description provided
snykImageTagString -No description provided
Example
dagger -m github.com/rropen/dagger-snyk@5293d766b64c38bcac423f6d3b008a03a17af9f0 call \
 snyk-code-test --src DIR_PATH --token env:MYSECRET
func (m *myModule) example(ctx context.Context, src *Directory, token *Secret) string  {
	return dag.
			Snyk().
			SnykCodeTest(ctx, src, token)
}
@function
async def example(src: dagger.Directory, token: dagger.Secret) -> str:
	return await (
		dag.snyk()
		.snyk_code_test(src, token)
	)
@func()
async example(src: Directory, token: Secret): Promise<string> {
	return dag
		.snyk()
		.snykCodeTest(src, token)
}

snykIacTest() 🔗

example usage: “dagger call snyk-iac-test –src . –token env:SNYK_TOKEN”

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
tokenSecret !-No description provided
severityThresholdString -No description provided
orgString -No description provided
policyPath[String ! ] -No description provided
snykImageTagString -No description provided
Example
dagger -m github.com/rropen/dagger-snyk@5293d766b64c38bcac423f6d3b008a03a17af9f0 call \
 snyk-iac-test --src DIR_PATH --token env:MYSECRET
func (m *myModule) example(ctx context.Context, src *Directory, token *Secret) string  {
	return dag.
			Snyk().
			SnykIacTest(ctx, src, token)
}
@function
async def example(src: dagger.Directory, token: dagger.Secret) -> str:
	return await (
		dag.snyk()
		.snyk_iac_test(src, token)
	)
@func()
async example(src: Directory, token: Secret): Promise<string> {
	return dag
		.snyk()
		.snykIacTest(src, token)
}

snykContainerTest() 🔗

example usage: “dagger call snyk-container-test –image alpine:latest –token env:SNYK_TOKEN”

Return Type
String !
Arguments
NameTypeDefault ValueDescription
imageString !-No description provided
tokenSecret !-No description provided
orgString -No description provided
policyPath[String ! ] -No description provided
snykImageTagString -No description provided
Example
dagger -m github.com/rropen/dagger-snyk@5293d766b64c38bcac423f6d3b008a03a17af9f0 call \
 snyk-container-test --image string --token env:MYSECRET
func (m *myModule) example(ctx context.Context, image string, token *Secret) string  {
	return dag.
			Snyk().
			SnykContainerTest(ctx, image, token)
}
@function
async def example(image: str, token: dagger.Secret) -> str:
	return await (
		dag.snyk()
		.snyk_container_test(image, token)
	)
@func()
async example(image: string, token: Secret): Promise<string> {
	return dag
		.snyk()
		.snykContainerTest(image, token)
}