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