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