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