Dagger
Search

snyk

No long description provided.

Installation

dagger install github.com/fluent-ci-templates/snyk-pipeline@5b2cfc03fd8fe865db4d510836176b308bd0f000

Entrypoint

Return Type
Snyk
Example
dagger -m github.com/fluent-ci-templates/snyk-pipeline@5b2cfc03fd8fe865db4d510836176b308bd0f000 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 🔗

test() 🔗

Checks projects for open source vulnerabilities and license issues

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory -Source directory
tokenSecret -Snyk token
severityThresholdString -Snyk severity threshold
Example
dagger -m github.com/fluent-ci-templates/snyk-pipeline@5b2cfc03fd8fe865db4d510836176b308bd0f000 call \
 test
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Snyk().
			Test(ctx)
}
@function
async def example() -> str:
	return await (
		dag.snyk()
		.test()
	)
@func()
async example(): Promise<string> {
	return dag
		.snyk()
		.test()
}

iacTest() 🔗

Checks projects for infrastructure as code issues

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory -Source directory
tokenSecret -Snyk token
severityThresholdString -Snyk severity threshold
Example
dagger -m github.com/fluent-ci-templates/snyk-pipeline@5b2cfc03fd8fe865db4d510836176b308bd0f000 call \
 iac-test
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Snyk().
			IacTest(ctx)
}
@function
async def example() -> str:
	return await (
		dag.snyk()
		.iac_test()
	)
@func()
async example(): Promise<string> {
	return dag
		.snyk()
		.iacTest()
}