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

This commit is contained in:
2026-03-29 16:32:01 +00:00
parent 53c3464104
commit d08b9b3721

View File

@@ -36,24 +36,22 @@ jobs:
# Verify: This should now show ~35-40 bytes # Verify: This should now show ~35-40 bytes
echo "Config file size: $(wc -c < $HOME/.codeant/config.json) bytes" echo "Config file size: $(wc -c < $HOME/.codeant/config.json) bytes"
- name: Run CodeAnt AI Review - name: Force full repo AI scan
run: | run: |
echo "Preparing full repo scan..." echo "Preparing full repo scan..."
git config --global user.email "ci@gitea.local" git config --global user.email "ci@gitea.local"
git config --global user.name "Gitea CI" git config --global user.name "Gitea CI"
# Ensure we have main branch
git fetch origin main git fetch origin main
# Create a new branch from main git checkout -b codeant-fullscan
git checkout -b codeant-scan
# Make a dummy change to force diff # 🔥 TOUCH ALL FILES (this is the key)
echo "# scan $(date)" >> codeant-temp.txt find . -type f -not -path "./.git/*" -exec touch {} +
git add . git add .
git commit -m "codeant full scan trigger" git commit -m "full repo scan"
echo "Running CodeAnt AI Review..." echo "Running CodeAnt AI Review..."
codeant review --committed > review.txt || true codeant review --committed > review.txt || true