Update .gitea/workflows/codeant.yml
All checks were successful
Codeant Security Scan / codeant-scan (push) Successful in 43s
All checks were successful
Codeant Security Scan / codeant-scan (push) Successful in 43s
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user