Update .gitea/workflows/codeant.yml
Some checks failed
Codeant Security Scan / codeant-scan (push) Failing after 0s

This commit is contained in:
2026-03-28 03:54:29 +00:00
parent d17deb57e4
commit 87060c4340

View File

@@ -23,15 +23,16 @@ jobs:
with:
node-version: '22' # Using Node 22 to avoid EBADENGINE errors
- name: Install CodeAnt CLI
env:
MY_KEY: ${{ secrets.CODEANT_API_KEY }}
run: |
npm install -g @codeant/cli
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
# Now we use the environment variable $MY_KEY
printf '{"apiKey":"%s"}\n' "$MY_KEY" > $HOME/.codeant/config.json
# DEBUG: Verify the file is actually there and has content
ls -la $HOME/.codeant/
# Verify: This should now show ~35-40 bytes
echo "Config file size: $(wc -c < $HOME/.codeant/config.json) bytes"
- name: Run CodeAnt Analysis
env: