security-scan
module for security scans like trivy, grype, etc.
Installation
dagger install github.com/Wompipomp/daggerverse/security-scan@54351abf4419b313c28e6a530e2480e48d11feeb
Entrypoint
Return Type
SecurityScan
Example
dagger -m github.com/Wompipomp/daggerverse/security-scan@54351abf4419b313c28e6a530e2480e48d11feeb call \
func (m *myModule) example() *SecurityScan {
return dag.
SecurityScan()
}
@function
def example() -> dag.SecurityScan:
return (
dag.security_scan()
)
@func()
example(): SecurityScan {
return dag
.securityScan()
}
Types
SecurityScan 🔗
trivyFileSystem() 🔗
Scans filesystem with Trivy
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | Directory to scan |
severity | String | "UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL" | No description provided |
exitCode | Integer | - | No description provided |
format | String | "table" | No description provided |
Example
dagger -m github.com/Wompipomp/daggerverse/security-scan@54351abf4419b313c28e6a530e2480e48d11feeb call \
trivy-file-system --dir DIR_PATH
func (m *myModule) example(ctx context.Context, dir *Directory) string {
return dag.
SecurityScan().
TrivyFileSystem(ctx, dir)
}
@function
async def example(dir: dagger.Directory) -> str:
return await (
dag.security_scan()
.trivy_file_system(dir)
)
@func()
async example(dir: Directory): Promise<string> {
return dag
.securityScan()
.trivyFileSystem(dir)
}