Prerequisites
Before using Code Optimizer, ensure you have:1
User Permissions
Your permissions determine what you can do in Code Optimizer:Admin role or Edit Organization Settings permission:
- Configure VCS integrations
- Run scans
- Generate fixes
- View Code Optimizer
- Run scans
2
VCS Integration
Connect your VCS provider with env zero. Choose the connection type based on your provider:For GitHub/GitHub Enterprise:
- Deployment Pipeline - Scanning only
- Code Write - Scanning + PR creation
- Deployment Pipeline - Scanning only (PR creation not yet supported)
3
Repository Selection
Select the repositories you want to scan during the VCS integration process. Code Optimizer will scan all authenticated repositories.
4
Terraform Code
Code Optimizer currently supports Terraform / OpenTofu (HCL). Support for other IaC frameworks coming soon.