Dagger
Search

scout

This module has been generated via dagger init and serves as a reference to basic module structure as you get started with Dagger.

Two functions have been pre-created. You can modify, delete, or add to them, as needed. They demonstrate usage of arguments and return types using simple echo and grep commands. The functions can be called from the dagger CLI or from one of the SDKs.

The first line in this comment block is a short description line and the rest is a long description with more detail on the module's purpose or usage, if appropriate. All modules should have a short description.

Installation

dagger install github.com/felipecruz91/daggerverse/scout@f136208bba7f378d959a81ec49d10f3ac4ab745b

Entrypoint

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

Types

Scout

dockerScoutCves()

DockerScoutCves displays CVEs identified in a container image

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-source is the directory containing the image tarball
dockerScoutHubUserString !-dockerScoutHubUser is the username for Docker Scout Hub
dockerScoutHubPasswordSecret !-dockerScoutHubPassword is the password for Docker Scout Hub
tarballPathString !-tarballPath is the path to the tarball containing the container image
onlySeverityString "critical,high"onlySeverity is the severity of vulnerabilities to filter by
exitCodeBoolean falseexitCode returns '2' if vulnerabilities are found
Example
dagger -m github.com/felipecruz91/daggerverse/scout@f136208bba7f378d959a81ec49d10f3ac4ab745b call \
 docker-scout-cves --source DIR_PATH --docker-scout-hub-user string --docker-scout-hub-password env:MYSECRET --tarball-path string
func (m *myModule) example(source *Directory, dockerScoutHubUser string, dockerScoutHubPassword *Secret, tarballPath string) *Container  {
	return dag.
			Scout().
			DockerScoutCves(source, dockerScoutHubUser, dockerScoutHubPassword, tarballPath)
}
@function
def example(source: dagger.Directory, docker_scout_hub_user: str, docker_scout_hub_password: dagger.Secret, tarball_path: str) -> dagger.Container:
	return (
		dag.scout()
		.docker_scout_cves(source, docker_scout_hub_user, docker_scout_hub_password, tarball_path)
	)
@func()
example(source: Directory, dockerScoutHubUser: string, dockerScoutHubPassword: Secret, tarballPath: string): Container {
	return dag
		.scout()
		.dockerScoutCves(source, dockerScoutHubUser, dockerScoutHubPassword, tarballPath)
}