quality_gate in your workflow.
1. Configure CodeAnt
- Enable secrets, SAST, and SCA in Analysis Configuration.
- Open Settings → Code Analysis → Quality Gates. Select your repository and turn Quality Gate On.
- Click Add Condition → Full Code. Add these conditions; changes save automatically:
- Create a token with the Codeant CI/CD role and repository access. Save it as the GitHub Actions secret
CODEANT_TOKEN.
PASSED.
2. Add the workflow
Save as.github/workflows/security.yml. Replace main with your target branch.
.github/workflows/security.yml
3. Run and review
- Merge onto your default branch.
- Open Actions → CodeAnt security pipeline → Run workflow.
- Open the run → Artifacts → download codeant-results.
4. Connect deployment
Replace the deployment placeholder with your command; keepneeds: security. For a report-only rollout, set quality_gate: 'false'.
Test on a known vulnerable commit: security must fail and deploy must be skipped before you roll this out.
To block merges, require the security check in your branch protection rule or ruleset. Fork PRs are skipped because secrets are unavailable.
Troubleshooting
See the example workflow and reports and actual action run.