Dagger
Search

semgrep

No long description provided.

Installation

dagger install github.com/jpadams/semgrep-dagger-module@2d91746e95d15790051f3e3544b51dac84743e4c

Entrypoint

Return Type
Semgrep
Example
func (m *myModule) example() *Semgrep  {
	return dag.
			Semgrep()
}
@function
def example() -> dag.Semgrep:
	return (
		dag.semgrep()
	)
@func()
example(): Semgrep {
	return dag
		.semgrep()
}

Types

Semgrep

scan()

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-A directory.
Example
dagger -m github.com/jpadams/semgrep-dagger-module@2d91746e95d15790051f3e3544b51dac84743e4c call \
 scan --source DIR_PATH
func (m *myModule) example(ctx context.Context, source *Directory) string  {
	return dag.
			Semgrep().
			Scan(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
	return await (
		dag.semgrep()
		.scan(source)
	)
@func()
async example(source: Directory): Promise<string> {
	return dag
		.semgrep()
		.scan(source)
}