diff --git a/.gitea/workflows/codeant.yml b/.gitea/workflows/codeant.yml index 9612117..3cac5e9 100644 --- a/.gitea/workflows/codeant.yml +++ b/.gitea/workflows/codeant.yml @@ -26,7 +26,17 @@ jobs: - name: Install CodeAnt CLI run: | npm install -g codeant-cli - codeant set-token github "${{ secrets.CODEANT_API_KEY }}" + + # 1. Create the hidden directory in the home folder + mkdir -p ~/.codeant + + # 2. Manually create the config.json file + # We use the Gitea Secret to fill in the apiKey + cat < ~/.codeant/config.json + { + "apiKey": "${{ secrets.CODEANT_API_KEY }}", + } + EOF - name: Run CodeAnt Analysis env: