govulncheck
Govulncheck reports known vulnerabilities in dependencies.
Installation
dagger install github.com/act3-ai/daggerverse/govulncheck@4db424d15b2b7ee6f913bab01834538348eade8fEntrypoint
Return Type
Govulncheck !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| container | Container | - | 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. |
| version | String | "latest" | Version of govulncheck to use as a binary source. |
Example
dagger -m github.com/act3-ai/daggerverse/govulncheck@4db424d15b2b7ee6f913bab01834538348eade8f 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/daggerverse/govulncheck@4db424d15b2b7ee6f913bab01834538348eade8f call \
containerfunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | Go source directory |
| patterns | String | "./..." | file patterns to include, |
Example
dagger -m github.com/act3-ai/daggerverse/govulncheck@4db424d15b2b7ee6f913bab01834538348eade8f call \
run-with-source --source DIR_PATHfunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| binary | File ! | - | binary file |
Example
dagger -m github.com/act3-ai/daggerverse/govulncheck@4db424d15b2b7ee6f913bab01834538348eade8f call \
run-with-binary --binary file:pathfunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| url | String | "https://vuln.go.dev" | vulnerability database url. |
Example
dagger -m github.com/act3-ai/daggerverse/govulncheck@4db424d15b2b7ee6f913bab01834538348eade8f call \
with-dbfunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| format | String | "text" | Output format. Supported values: 'text', 'json', 'sarif', and 'openvex'. |
Example
dagger -m github.com/act3-ai/daggerverse/govulncheck@4db424d15b2b7ee6f913bab01834538348eade8f call \
with-formatfunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| level | String | "symbol" | scanning level. Supported values: 'module', 'package', or 'symbol'. |
Example
dagger -m github.com/act3-ai/daggerverse/govulncheck@4db424d15b2b7ee6f913bab01834538348eade8f call \
with-scan-levelfunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| enable | [String ! ] ! | - | Enable additional info. Supported values: 'traces', 'color', 'version', and 'verbose'. |
Example
dagger -m github.com/act3-ai/daggerverse/govulncheck@4db424d15b2b7ee6f913bab01834538348eade8f call \
with-show --enable string1 --enable string2func (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)
}