Vercel production deployments originate from a stable branch
deployment_production_uses_stable_target
Vercel production deployments are assessed for source branch stability by verifying they are sourced from a stable branch (main or master). Deploying to production from feature branches bypasses standard CI/CD review processes and may introduce untested or incomplete code into the production environment.
Risk
Production deployments from feature branches may contain untested, incomplete, or unapproved code changes. This bypasses the standard code review and merge workflow, increasing the risk of shipping bugs, security vulnerabilities, or breaking changes to end users.
prowler vercel --checks deployment_production_uses_stable_target
Recommendation
Configure the production branch to main or master and ensure all production deployments go through the standard merge workflow. Use branch protection rules in your Git provider to prevent direct pushes to the production branch.
Remediation
- Sign in to the Vercel dashboard
- Navigate to the project Settings > Git
- Ensure the Production Branch is set to 'main' or 'master'
- Review recent production deployments and revert any that originated from feature branches
Source Code
Resource Type
NotDefined
References