From 62d38422f716a58727378b56f44dd9a499aa3dac Mon Sep 17 00:00:00 2001 From: Rajendra Reddy Date: Sun, 29 Mar 2026 16:13:14 +0000 Subject: [PATCH] Update .gitea/workflows/codeant.yml --- .gitea/workflows/codeant.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/codeant.yml b/.gitea/workflows/codeant.yml index 3761566..041b7f6 100644 --- a/.gitea/workflows/codeant.yml +++ b/.gitea/workflows/codeant.yml @@ -35,12 +35,21 @@ jobs: # Verify: This should now show ~35-40 bytes echo "Config file size: $(wc -c < $HOME/.codeant/config.json) bytes" - - name: Run CodeAnt Analysis - env: - # The CLI uses this for non-interactive auth - CODEANT_API_TOKEN: ${{ secrets.CODEANT_API_KEY }} + + - name: Run CodeAnt AI Review (Full Repo First Time) run: | - echo "Starting Full Repository AI Review..." - # --all reviews the whole codebase - # --fail-on MAJOR will fail the build if high-severity bugs are found - codeant review --all --fail-on MAJOR \ No newline at end of file + echo "Preparing full repo scan..." + + # Ensure full git history + git fetch --unshallow || true + + # 👇 Create fake baseline so everything is treated as new + git checkout --orphan codeant-scan + git add . + git commit -m "full repo scan baseline" + + echo "Running CodeAnt AI Review..." + codeant review --committed > review.txt || true + + echo "===== CodeAnt Output =====" + cat review.txt \ No newline at end of file