wiz
A module for Wiz scanning
Installation
dagger install github.com/jpadams/wiz@86c5e028463f1a568bc7288d03cfa7f7052a89fe
Entrypoint
Return Type
Wiz
Example
dagger -m github.com/jpadams/wiz@86c5e028463f1a568bc7288d03cfa7f7052a89fe call \
func (m *myModule) example() *Wiz {
return dag.
Wiz()
}
@function
def example() -> dag.Wiz:
return (
dag.wiz()
)
@func()
example(): Wiz {
return dag
.wiz()
}
Types
Wiz 🔗
base() 🔗
Returns a Container with the latest Wiz CLI
Return Type
Container !
Example
dagger -m github.com/jpadams/wiz@86c5e028463f1a568bc7288d03cfa7f7052a89fe call \
base
func (m *myModule) example() *Container {
return dag.
Wiz().
Base()
}
@function
def example() -> dagger.Container:
return (
dag.wiz()
.base()
)
@func()
example(): Container {
return dag
.wiz()
.base()
}
authd() 🔗
Returns a base Container authenticated with Wiz
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
wizId | Secret ! | - | No description provided |
wizSecret | Secret ! | - | No description provided |
Example
dagger -m github.com/jpadams/wiz@86c5e028463f1a568bc7288d03cfa7f7052a89fe call \
authd --wiz-id env:MYSECRET --wiz-secret env:MYSECRET
func (m *myModule) example(wizId *Secret, wizSecret *Secret) *Container {
return dag.
Wiz().
Authd(wizId, wizSecret)
}
@function
def example(wiz_id: dagger.Secret, wiz_secret: dagger.Secret) -> dagger.Container:
return (
dag.wiz()
.authd(wiz_id, wiz_secret)
)
@func()
example(wizId: Secret, wizSecret: Secret): Container {
return dag
.wiz()
.authd(wizId, wizSecret)
}
scanDirectory() 🔗
Scan a directory with Wiz CLI
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | No description provided |
wizId | Secret ! | - | No description provided |
wizSecret | Secret ! | - | No description provided |
Example
dagger -m github.com/jpadams/wiz@86c5e028463f1a568bc7288d03cfa7f7052a89fe call \
scan-directory --dir DIR_PATH --wiz-id env:MYSECRET --wiz-secret env:MYSECRET
func (m *myModule) example(dir *Directory, wizId *Secret, wizSecret *Secret) *Container {
return dag.
Wiz().
ScanDirectory(dir, wizId, wizSecret)
}
@function
def example(dir: dagger.Directory, wiz_id: dagger.Secret, wiz_secret: dagger.Secret) -> dagger.Container:
return (
dag.wiz()
.scan_directory(dir, wiz_id, wiz_secret)
)
@func()
example(dir: Directory, wizId: Secret, wizSecret: Secret): Container {
return dag
.wiz()
.scanDirectory(dir, wizId, wizSecret)
}
scanImage() 🔗
Scan a container image in a registry with Wiz CLI
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
image | String ! | - | No description provided |
wizId | Secret ! | - | No description provided |
wizSecret | Secret ! | - | No description provided |
Example
dagger -m github.com/jpadams/wiz@86c5e028463f1a568bc7288d03cfa7f7052a89fe call \
scan-image --image string --wiz-id env:MYSECRET --wiz-secret env:MYSECRET
func (m *myModule) example(image string, wizId *Secret, wizSecret *Secret) *Container {
return dag.
Wiz().
ScanImage(image, wizId, wizSecret)
}
@function
def example(image: str, wiz_id: dagger.Secret, wiz_secret: dagger.Secret) -> dagger.Container:
return (
dag.wiz()
.scan_image(image, wiz_id, wiz_secret)
)
@func()
example(image: string, wizId: Secret, wizSecret: Secret): Container {
return dag
.wiz()
.scanImage(image, wizId, wizSecret)
}
scanContainer() 🔗
Scan a Dagger Container with Wiz CLI
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | No description provided |
name | String ! | "scanned-image" | No description provided |
wizId | Secret ! | - | No description provided |
wizSecret | Secret ! | - | No description provided |
Example
dagger -m github.com/jpadams/wiz@86c5e028463f1a568bc7288d03cfa7f7052a89fe call \
scan-container --container IMAGE:TAG --name string --wiz-id env:MYSECRET --wiz-secret env:MYSECRET
func (m *myModule) example(container *Container, name string, wizId *Secret, wizSecret *Secret) *Container {
return dag.
Wiz().
ScanContainer(container, name, wizId, wizSecret)
}
@function
def example(container: dagger.Container, name: str, wiz_id: dagger.Secret, wiz_secret: dagger.Secret) -> dagger.Container:
return (
dag.wiz()
.scan_container(container, name, wiz_id, wiz_secret)
)
@func()
example(container: Container, name: string, wizId: Secret, wizSecret: Secret): Container {
return dag
.wiz()
.scanContainer(container, name, wizId, wizSecret)
}