CI/CD
Github Actions
Set up CodeAnt into your github CI Pipeline.
GitHub Actions Workflow
Add the following job to your .github/workflows/...yaml
. It will trigger on every push to your target branch and kick off a CodeAnt analysis scan:
Tip:
- Add an
ACCESS_TOKEN
secret in your repository settings.- Adjust
include-files
(-i
) andexclude-files
(-e
) globs as needed.
How it works
-
Download script We fetch a small Bash helper (
start_scan.sh
) from the CodeAnt CI endpoint. -
Make it runnable Mark the script executable so you can invoke it directly.
-
Invoke the scan The script POSTs your repo, commit, and file-globs to
/analysis/ci/scan
, using your token for auth. -
Pipeline feedback
- On success, you’ll see a parsed JSON response in the job log.
- On failure (non-2xx HTTP), the script exits non-zero, failing your workflow immediately.
With this in place, every push will automatically kick off a CodeAnt analysis run—and your CI status will reflect whether any HIGH-severity issues were detected.