zap-cdk-client
v1.0.2
Published
zap cdk client
Downloads
9
Readme
⚡️ Zap CDK CLI
A command-line tool for scaffolding multi-language Zap CDK projects and exporting scan configurations used by Zap Automation.
📦 Installation
pnpm install🚀 Usage
Run commands using the provided scripts:
pnpm baseline # Export baseline scan YAML example
pnpm fullscan # Export full scan YAML example
pnpm apiscan # Export API scan YAML example
pnpm new # Scaffold a new CDK project
pnpm synth # Run CDK synth in a project folder📚 Commands
🔍 pnpm baseline
Exports a baseline scan YAML file.
pnpm baseline🔍 pnpm fullscan
Exports a full scan YAML file.
pnpm fullscan⚠️ Note: Implementation for
exportFullScan()is pending.
🔍 pnpm apiscan
Exports an API scan YAML file.
pnpm apiscan⚠️ Note: Implementation for
exportApiScan()is pending.
🆕 pnpm new <language> [name]
Scaffolds a new CDK project in the specified language.
Parameters
language(required): Programming language to scaffold
Choices:typescript,python,java,go,csharpname(optional): Project name (default:my-cdk-app)
Examples
pnpm new typescript my-ts-app
pnpm new python my-py-app
pnpm new java my-java-app
pnpm new go my-go-app
pnpm new csharp my-csharp-app🗂️ Projects are created one level above the CLI directory.
🛠️ pnpm synth [target]
Runs cdk synth in the specified project folder.
Parameters
target(optional): Path to the CDK project folder (default:.)
Examples
pnpm synth # Synth in current folder
pnpm synth ../my-ts-app # Synth in a specific folder🧑💻 Development Notes
- Written in TypeScript using
tsxfor execution. - Uses
projento scaffold CDK projects across multiple languages. - Supports publishing to npm and GitHub Packages via GitHub Actions.
✅ To Do
- Add Deploy (ability to upload yaml to Zap using api) Look at https://www.zaproxy.org/docs/api/#introduction
- Add ability create a docker file using projen and maybe even look at cdk-tf (Terraform) Look at https://www.zaproxy.org/docs/docker/about/
- Fix golang and c# versions so has projen in it...
