Dagger
Search

api-scan

No long description provided.

Installation

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

Entrypoint

Return Type
ApiScan
Example
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@cada45e1a63c0fd9ce7bc9ba56f4e7d3d6cb75de 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)
}