Update .gitea/workflows/codeant.yml
All checks were successful
Codeant Security Scan / codeant-scan (push) Successful in 45s
All checks were successful
Codeant Security Scan / codeant-scan (push) Successful in 45s
This commit is contained in:
@@ -36,24 +36,26 @@ jobs:
|
||||
# Verify: This should now show ~35-40 bytes
|
||||
echo "Config file size: $(wc -c < $HOME/.codeant/config.json) bytes"
|
||||
|
||||
- name: Run CodeAnt AI Review (Full Repo First Time)
|
||||
- name: Run CodeAnt AI Review
|
||||
run: |
|
||||
echo "Preparing full repo scan..."
|
||||
|
||||
# Fix Git identity (🔥 REQUIRED)
|
||||
git config --global user.email "ci@gitea.local"
|
||||
git config --global user.name "Gitea CI"
|
||||
|
||||
# Handle shallow repo safely
|
||||
git fetch --unshallow || true
|
||||
# Ensure we have main branch
|
||||
git fetch origin main
|
||||
|
||||
# Create a new branch from main
|
||||
git checkout -b codeant-scan
|
||||
|
||||
# Make a dummy change to force diff
|
||||
echo "# scan $(date)" >> codeant-temp.txt
|
||||
|
||||
# Create orphan branch (full repo as new commit)
|
||||
git checkout --orphan codeant-scan
|
||||
git add .
|
||||
git commit -m "full repo scan baseline"
|
||||
git commit -m "codeant full scan trigger"
|
||||
|
||||
echo "Running CodeAnt AI Review..."
|
||||
codeant review --committed > review.txt || true
|
||||
|
||||
echo "===== CodeAnt Output ====="
|
||||
cat review.txt
|
||||
Reference in New Issue
Block a user