fix: move secrets from run blocks to env blocks to resolve S7636 hotspots (issue #106)

This commit is contained in:
2026-03-19 21:57:19 +00:00
parent 7eb7aedc39
commit 30238ebebe
3 changed files with 14 additions and 4 deletions

View File

@@ -39,8 +39,10 @@ jobs:
- name: Check if SonarCloud token is set
id: check_token
env:
SONARCLOUD_GITHUB: ${{ secrets.SONARCLOUD_GITHUB }}
run: |
if [ -z "${{ secrets.SONARCLOUD_GITHUB }}" ]; then
if [ -z "$SONARCLOUD_GITHUB" ]; then
echo "SONARCLOUD_GITHUB is not set, skipping SonarCloud analysis"
echo "skip=true" >> $GITHUB_OUTPUT
else