From d17deb57e4f859e88406a323a79728c2ef65346b Mon Sep 17 00:00:00 2001 From: Rajendra Reddy Date: Sat, 28 Mar 2026 03:51:26 +0000 Subject: [PATCH] Update .gitea/workflows/codeant.yml --- .gitea/workflows/codeant.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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