scout
This module has been generated via dagger init and serves as a reference tobasic 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
dagger -m github.com/felipecruz91/daggerverse/scout@f136208bba7f378d959a81ec49d10f3ac4ab745b call \
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
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | source is the directory containing the image tarball |
dockerScoutHubUser | String ! | - | dockerScoutHubUser is the username for Docker Scout Hub |
dockerScoutHubPassword | Secret ! | - | dockerScoutHubPassword is the password for Docker Scout Hub |
tarballPath | String ! | - | tarballPath is the path to the tarball containing the container image |
onlySeverity | String | "critical,high" | onlySeverity is the severity of vulnerabilities to filter by |
exitCode | Boolean | false | exitCode 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)
}