Update .gitea/workflows/codeant.yml
All checks were successful
Codeant Security Scan / codeant-scan (push) Successful in 43s

This commit is contained in:
2026-03-29 16:19:35 +00:00
parent 62d38422f7
commit 27732e3033

View File

@@ -40,10 +40,14 @@ jobs:
run: |
echo "Preparing full repo scan..."
# Ensure full git history
# 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
# 👇 Create fake baseline so everything is treated as new
# Create orphan branch (full repo as new commit)
git checkout --orphan codeant-scan
git add .
git commit -m "full repo scan baseline"
@@ -52,4 +56,4 @@ jobs:
codeant review --committed > review.txt || true
echo "===== CodeAnt Output ====="
cat review.txt
cat review.txt