diff --git a/.gitea/workflows/codeant.yml b/.gitea/workflows/codeant.yml index a0ce4d2..ebf9e97 100644 --- a/.gitea/workflows/codeant.yml +++ b/.gitea/workflows/codeant.yml @@ -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: