1. Add your token
- Connect your repository and enable SAST, SCA, and secrets in Analysis Configuration.
- Create a CodeAnt token with the Codeant CI/CD role and access to this repository.
- In GitHub, open Settings → Secrets and variables → Actions → New repository secret. Save it as
CODEANT_TOKEN.
2. Add the workflow
Save as.github/workflows/codeant-scan.yml. Replace main with your target branch.
.github/workflows/codeant-scan.yml
quality_gate: 'true'.
Fork PRs are skipped because GitHub does not provide repository secrets.
3. Run and download
- Merge the workflow onto your default branch.
- Open Actions → CodeAnt full repository scan → Run workflow.
- Open the completed run. Under Artifacts, download codeant-results.
Inputs
Enable the selected analyses in CodeAnt;
scanners selects returned results. antipatterns returns duplicate-code results. Include patterns take precedence over exclusions.