Update .gitea/workflows/codeant.yml
All checks were successful
Codeant Security Scan / codeant-scan (push) Successful in 11s
All checks were successful
Codeant Security Scan / codeant-scan (push) Successful in 11s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user