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

This commit is contained in:
2026-03-28 03:40:15 +00:00
parent 92211502e2
commit e4977f9960

View File

@@ -26,7 +26,17 @@ jobs:
- name: Install CodeAnt CLI - name: Install CodeAnt CLI
run: | run: |
npm install -g codeant-cli npm install -g codeant-cli
codeant set-token github "${{ secrets.CODEANT_API_KEY }}"
# 1. Create the hidden directory in the home folder
mkdir -p ~/.codeant
# 2. Manually create the config.json file
# We use the Gitea Secret to fill in the apiKey
cat <<EOF > ~/.codeant/config.json
{
"apiKey": "${{ secrets.CODEANT_API_KEY }}",
}
EOF
- name: Run CodeAnt Analysis - name: Run CodeAnt Analysis
env: env: