Skip to main content

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 Dashboard permission:
  • View Code Optimizer
  • Run scans
Learn more: User Roles & Permissions
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
For other VCS providers (GitLab, Bitbucket, Azure DevOps):
  • Deployment Pipeline - Scanning only (PR creation not yet supported)
Learn more: VCS Connection Types
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.
Self-Hosted Agent Version Requirement: Code Optimizer is supported on self-hosted agents from version v4.0.29 and up. If you’re using a self-hosted agent, ensure it’s running at least this version to use Code Optimizer features.

Next Steps