Update .gitea/workflows/codeant.yml
Some checks failed
Codeant Security Scan / codeant-scan (push) Failing after 0s
Some checks failed
Codeant Security Scan / codeant-scan (push) Failing after 0s
This commit is contained in:
@@ -23,15 +23,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '22' # Using Node 22 to avoid EBADENGINE errors
|
node-version: '22' # Using Node 22 to avoid EBADENGINE errors
|
||||||
|
|
||||||
- name: Install CodeAnt CLI
|
env:
|
||||||
|
MY_KEY: ${{ secrets.CODEANT_API_KEY }}
|
||||||
run: |
|
run: |
|
||||||
|
npm install -g @codeant/cli
|
||||||
mkdir -p $HOME/.codeant
|
mkdir -p $HOME/.codeant
|
||||||
|
|
||||||
# Use printf to write the JSON to the absolute path
|
# Now we use the environment variable $MY_KEY
|
||||||
printf '{"apiKey":"%s"}' "${{ secrets.CODEANT_API_KEY }}" > $HOME/.codeant/config.json
|
printf '{"apiKey":"%s"}\n' "$MY_KEY" > $HOME/.codeant/config.json
|
||||||
|
|
||||||
# DEBUG: Verify the file is actually there and has content
|
# Verify: This should now show ~35-40 bytes
|
||||||
ls -la $HOME/.codeant/
|
|
||||||
echo "Config file size: $(wc -c < $HOME/.codeant/config.json) bytes"
|
echo "Config file size: $(wc -c < $HOME/.codeant/config.json) bytes"
|
||||||
- name: Run CodeAnt Analysis
|
- name: Run CodeAnt Analysis
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user