Update .gitea/workflows/codeant.yml
All checks were successful
Codeant Security Scan / codeant-scan (push) Successful in 42s
All checks were successful
Codeant Security Scan / codeant-scan (push) Successful in 42s
This commit is contained in:
@@ -26,7 +26,17 @@ jobs:
|
|||||||
- name: Install CodeAnt CLI
|
- name: Install CodeAnt CLI
|
||||||
run: |
|
run: |
|
||||||
npm install -g codeant-cli
|
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 <<EOF > ~/.codeant/config.json
|
||||||
|
{
|
||||||
|
"apiKey": "${{ secrets.CODEANT_API_KEY }}",
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
- name: Run CodeAnt Analysis
|
- name: Run CodeAnt Analysis
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user