Dagger
Search

govulncheck

Govulncheck reports known vulnerabilities in dependencies.

Installation

dagger install github.com/act3-ai/dagger/govulncheck@499c86265caaca623010e61093974204d72c37af

Entrypoint

Return Type
Govulncheck !
Arguments
NameTypeDefault ValueDescription
containerContainer -Custom container to use as a base container. Must have go available. It's recommended to use github.com/sagikazarmark/daggerverse/go for a custom container, excluding the source directory.
versionString "latest"Version of govulncheck to use as a binary source.
Example
dagger -m github.com/act3-ai/dagger/govulncheck@499c86265caaca623010e61093974204d72c37af call \
func (m *MyModule) Example() *dagger.Govulncheck  {
	return dag.
			Govulncheck()
}
@function
def example() -> dagger.Govulncheck:
	return (
		dag.govulncheck()
	)
@func()
example(): Govulncheck {
	return dag
		.govulncheck()
}

Types

Govulncheck 🔗

container() 🔗

Return Type
Container !
Example
dagger -m github.com/act3-ai/dagger/govulncheck@499c86265caaca623010e61093974204d72c37af call \
 container
func (m *MyModule) Example() *dagger.Container  {
	return dag.
			Govulncheck().
			Container()
}
@function
def example() -> dagger.Container:
	return (
		dag.govulncheck()
		.container()
	)
@func()
example(): Container {
	return dag
		.govulncheck()
		.container()
}

withNetrc() 🔗

Mount netrc credentials for a private git repository.

Return Type
Govulncheck !
Arguments
NameTypeDefault ValueDescription
netrcSecret !-

NETRC credentials

Example
dagger -m github.com/act3-ai/dagger/govulncheck@499c86265caaca623010e61093974204d72c37af call \
 with-netrc --netrc env:MYSECRET
func (m *MyModule) Example(netrc *dagger.Secret) *dagger.Govulncheck  {
	return dag.
			Govulncheck().
			Withnetrc(netrc)
}
@function
def example(netrc: dagger.Secret) -> dagger.Govulncheck:
	return (
		dag.govulncheck()
		.withnetrc(netrc)
	)
@func()
example(netrc: Secret): Govulncheck {
	return dag
		.govulncheck()
		.withNetrc(netrc)
}

runWithSource() 🔗

Run govulncheck with a source directory.

e.g. govulncheck -mode=source.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-

Go source directory

patternsString "./..."

file patterns to include,

Example
dagger -m github.com/act3-ai/dagger/govulncheck@499c86265caaca623010e61093974204d72c37af call \
 run-with-source --source DIR_PATH
func (m *MyModule) Example(source *dagger.Directory) *dagger.Container  {
	return dag.
			Govulncheck().
			Runwithsource(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
	return (
		dag.govulncheck()
		.runwithsource(source)
	)
@func()
example(source: Directory): Container {
	return dag
		.govulncheck()
		.runWithSource(source)
}

runWithBinary() 🔗

Run govulncheck with a binary.

e.g. govulncheck -mode=binary <binary>.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
binaryFile !-

binary file

Example
dagger -m github.com/act3-ai/dagger/govulncheck@499c86265caaca623010e61093974204d72c37af call \
 run-with-binary --binary file:path
func (m *MyModule) Example(binary *dagger.File) *dagger.Container  {
	return dag.
			Govulncheck().
			Runwithbinary(binary)
}
@function
def example(binary: dagger.File) -> dagger.Container:
	return (
		dag.govulncheck()
		.runwithbinary(binary)
	)
@func()
example(binary: File): Container {
	return dag
		.govulncheck()
		.runWithBinary(binary)
}

withDb() 🔗

Specify a vulnerability database url.

e.g. govlulncheck -db <url>.

Return Type
Govulncheck !
Arguments
NameTypeDefault ValueDescription
urlString "https://vuln.go.dev"

vulnerability database url.

Example
dagger -m github.com/act3-ai/dagger/govulncheck@499c86265caaca623010e61093974204d72c37af call \
 with-db
func (m *MyModule) Example() *dagger.Govulncheck  {
	return dag.
			Govulncheck().
			Withdb()
}
@function
def example() -> dagger.Govulncheck:
	return (
		dag.govulncheck()
		.withdb()
	)
@func()
example(): Govulncheck {
	return dag
		.govulncheck()
		.withDb()
}

withFormat() 🔗

Specify the output format.

e.g. govulncheck -format <format>.

Return Type
Govulncheck !
Arguments
NameTypeDefault ValueDescription
formatString "text"

Output format. Supported values: ‘text’, ‘json’, ‘sarif’, and ‘openvex’.

Example
dagger -m github.com/act3-ai/dagger/govulncheck@499c86265caaca623010e61093974204d72c37af call \
 with-format
func (m *MyModule) Example() *dagger.Govulncheck  {
	return dag.
			Govulncheck().
			Withformat()
}
@function
def example() -> dagger.Govulncheck:
	return (
		dag.govulncheck()
		.withformat()
	)
@func()
example(): Govulncheck {
	return dag
		.govulncheck()
		.withFormat()
}

withScanLevel() 🔗

Set the scanning level.

e.g. govulncheck -scan <level>.

Return Type
Govulncheck !
Arguments
NameTypeDefault ValueDescription
levelString "symbol"

scanning level. Supported values: ‘module’, ‘package’, or ‘symbol’.

Example
dagger -m github.com/act3-ai/dagger/govulncheck@499c86265caaca623010e61093974204d72c37af call \
 with-scan-level
func (m *MyModule) Example() *dagger.Govulncheck  {
	return dag.
			Govulncheck().
			Withscanlevel()
}
@function
def example() -> dagger.Govulncheck:
	return (
		dag.govulncheck()
		.withscanlevel()
	)
@func()
example(): Govulncheck {
	return dag
		.govulncheck()
		.withScanLevel()
}

withShow() 🔗

Enable display of additional information.

e.g. govulncheck -show <enable>....

Return Type
Govulncheck !
Arguments
NameTypeDefault ValueDescription
enable[String ! ] !-

Enable additional info. Supported values: ‘traces’, ‘color’, ‘version’, and ‘verbose’.

Example
dagger -m github.com/act3-ai/dagger/govulncheck@499c86265caaca623010e61093974204d72c37af call \
 with-show --enable string1 --enable string2
func (m *MyModule) Example(enable []string) *dagger.Govulncheck  {
	return dag.
			Govulncheck().
			Withshow(enable)
}
@function
def example(enable: List[str]) -> dagger.Govulncheck:
	return (
		dag.govulncheck()
		.withshow(enable)
	)
@func()
example(enable: string[]): Govulncheck {
	return dag
		.govulncheck()
		.withShow(enable)
}