Dagger
Search

api-scan

No long description provided.

Installation

dagger install github.com/msthtrifork/sec-scan/api-scan@26aeb49266bfac3b8526f57f8c525c6a5e1b404d

Entrypoint

Return Type
ApiScan
Example
dagger -m github.com/msthtrifork/sec-scan/api-scan@26aeb49266bfac3b8526f57f8c525c6a5e1b404d call \
func (m *myModule) example() *ApiScan  {
	return dag.
			ApiScan()
}
@function
def example() -> dag.ApiScan:
	return (
		dag.api_scan()
	)
@func()
example(): ApiScan {
	return dag
		.apiScan()
}

Types

ApiScan 🔗

apiScan() 🔗

scan API endpoints for security vulnerabilities send the api specification and a format to the zap-api-scan.py script

Return Type
File !
Arguments
NameTypeDefault ValueDescription
openapiSpecFile !-No description provided
formatString "openapi"No description provided
Example
dagger -m github.com/msthtrifork/sec-scan/api-scan@26aeb49266bfac3b8526f57f8c525c6a5e1b404d call \
 api-scan --openapi-spec file:path
func (m *myModule) example(openapiSpec *File) *File  {
	return dag.
			ApiScan().
			ApiScan(openapiSpec)
}
@function
def example(openapi_spec: dagger.File) -> dagger.File:
	return (
		dag.api_scan()
		.api_scan(openapi_spec)
	)
@func()
example(openapiSpec: File): File {
	return dag
		.apiScan()
		.apiScan(openapiSpec)
}