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

This commit is contained in:
2026-03-28 03:51:26 +00:00
parent c7a22cfe3e
commit d17deb57e4

View File

@@ -25,12 +25,14 @@ jobs:
- name: Install CodeAnt CLI
run: |
npm install -g codeant-cli
# 1. Create the hidden directory in the home folder
mkdir -p ~/.codeant
printf '{"apiKey":"%s"}\n' "${{ secrets.CODEANT_API_KEY }}" > ~/.codeant/config.json
mkdir -p $HOME/.codeant
# Use printf to write the JSON to the absolute path
printf '{"apiKey":"%s"}' "${{ secrets.CODEANT_API_KEY }}" > $HOME/.codeant/config.json
# DEBUG: Verify the file is actually there and has content
ls -la $HOME/.codeant/
echo "Config file size: $(wc -c < $HOME/.codeant/config.json) bytes"
- name: Run CodeAnt Analysis
env:
# The CLI uses this for non-interactive auth