diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index 406ba226efd..9b5f3d933bf 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -13,7 +13,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 with: - ref: "*" # Checkout the branch where the original workflow was triggered + ref: ${{ github.event.workflow_run.head_branch }} # Checkout the branch where the original workflow was triggered - name: Print SONAR_TOKEN run: echo "SONAR_TOKEN=${{ secrets.SONAR_TOKEN }}PWR****123"