diff --git a/.gitea/workflows/codeant.yml b/.gitea/workflows/codeant.yml index 3cac5e9..d64def3 100644 --- a/.gitea/workflows/codeant.yml +++ b/.gitea/workflows/codeant.yml @@ -29,14 +29,7 @@ jobs: # 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 + printf '{"apiKey":"%s"}\n' "${{ secrets.CODEANT_API_KEY }}" > ~/.codeant/config.json - name: Run CodeAnt Analysis env: