Skip to main content
Configure thresholds in CodeAnt, then set quality_gate in your workflow.

1. Configure CodeAnt

  1. Enable secrets, SAST, and SCA in Analysis Configuration.
  2. Open Settings → Code Analysis → Quality Gates. Select your repository and turn Quality Gate On.
  3. Click Add Condition → Full Code. Add these conditions; changes save automatically:
  1. Create a token with the Codeant CI/CD role and repository access. Save it as the GitHub Actions secret CODEANT_TOKEN.
Configure conditions first: without them, the backend can return PASSED.

2. Add the workflow

Save as .github/workflows/security.yml. Replace main with your target branch.
.github/workflows/security.yml
Secrets appear in reports but currently have no Full Code gate metric.

3. Run and review

  1. Merge onto your default branch.
  2. Open Actions → CodeAnt security pipeline → Run workflow.
  3. Open the run → Artifacts → download codeant-results.
The archive contains JSON findings, SARIF, and JUnit XML. The action does not generate CSV/PDF.

4. Connect deployment

Replace the deployment placeholder with your command; keep needs: 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.