diff --git a/.github/workflows/sonar_cloud_run.yml b/.github/workflows/sonar_cloud_run.yml index 6922e9117..be3121b31 100644 --- a/.github/workflows/sonar_cloud_run.yml +++ b/.github/workflows/sonar_cloud_run.yml @@ -27,7 +27,7 @@ jobs: run: | OTHER_REPO="${{ github.repository }}" WF_NAME="SonarCloud Build" - RUN_ID=`gh run --repo ${OTHER_REPO} list --workflow ${WF_NAME} --json databaseId --jq .[0].databaseId` + RUN_ID=`gh run --repo ${OTHER_REPO} list --workflow "${WF_NAME}" --json databaseId --jq .[0].databaseId` echo "Detected latest run id of ${RUN_ID} for workflow ${WF_NAME}" echo "run-id=${RUN_ID}" >> "$GITHUB_OUTPUT" env: