fix: move secrets from run blocks to env blocks to resolve S7636 hotspots (issue #106)
This commit is contained in:
4
.github/workflows/sonarcloud.yml
vendored
4
.github/workflows/sonarcloud.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user