Update .gitea/workflows/codeant.yml
Some checks failed
Codeant Security Scan / codeant-scan (push) Failing after 1m32s

This commit is contained in:
2026-03-29 16:13:14 +00:00
parent d09083de8b
commit 62d38422f7

View File

@@ -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
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