Dagger
Search

govulncheck

Govulncheck reports known vulnerabilities in dependencies.

Installation

dagger install github.com/act3-ai/dagger/govulncheck@4d06ca05c7b467c2ab0e59bf0db2cc753fe4de49

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@4d06ca05c7b467c2ab0e59bf0db2cc753fe4de49 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@4d06ca05c7b467c2ab0e59bf0db2cc753fe4de49 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()
}

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@4d06ca05c7b467c2ab0e59bf0db2cc753fe4de49 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()
		.run_with_source(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@4d06ca05c7b467c2ab0e59bf0db2cc753fe4de49 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()
		.run_with_binary(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@4d06ca05c7b467c2ab0e59bf0db2cc753fe4de49 call \
 with-db
func (m *myModule) example() *dagger.Govulncheck  {
	return dag.
			Govulncheck().
			WithDb()
}
@function
def example() -> dagger.Govulncheck:
	return (
		dag.govulncheck()
		.with_db()
	)
@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@4d06ca05c7b467c2ab0e59bf0db2cc753fe4de49 call \
 with-format
func (m *myModule) example() *dagger.Govulncheck  {
	return dag.
			Govulncheck().
			WithFormat()
}
@function
def example() -> dagger.Govulncheck:
	return (
		dag.govulncheck()
		.with_format()
	)
@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@4d06ca05c7b467c2ab0e59bf0db2cc753fe4de49 call \
 with-scan-level
func (m *myModule) example() *dagger.Govulncheck  {
	return dag.
			Govulncheck().
			WithScanLevel()
}
@function
def example() -> dagger.Govulncheck:
	return (
		dag.govulncheck()
		.with_scan_level()
	)
@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@4d06ca05c7b467c2ab0e59bf0db2cc753fe4de49 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()
		.with_show(enable)
	)
@func()
example(enable: string[]): Govulncheck {
	return dag
		.govulncheck()
		.withShow(enable)
}