diff --git a/.gitea/workflows/codeant.yml b/.gitea/workflows/codeant.yml index 041b7f6..9246fce 100644 --- a/.gitea/workflows/codeant.yml +++ b/.gitea/workflows/codeant.yml @@ -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 \ No newline at end of file + cat review.txt \ No newline at end of file