1. Connect your repository
Connect your repository and enable SAST, SCA, and secrets in Analysis Configuration.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'.
This example skips fork PRs and scans commits from the connected repository.
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.
Use a CodeAnt token as a fallback
If the built-in token is unavailable, create a CodeAnt token with the Codeant CI/CD role and repository access. Save it as the GitHub Actions secretCODEANT_TOKEN and replace the input: