Skip to content

Commit 6c336ae

Browse files
authored
Update sonarcloud.yml (matrix-org#2411)
1 parent a4a50a4 commit 6c336ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ jobs:
5353

5454
# Fetch base branch from the upstream repo so that Sonar can identify new code in PR builds
5555
- name: "📕 Fetch upstream base branch"
56-
# workflow_call retains the github context of the caller, so `repositoryUrl` will be upstream always due
56+
# workflow_call retains the github context of the caller, so `repository` will be upstream always due
5757
# to it running on `workflow_run` which is called from the context of the target repo and not the fork.
5858
if: inputs.base_branch
5959
run: |
60-
git remote add upstream ${{ github.repositoryUrl }}
60+
git remote add upstream https://github.com/${{ github.repository }}
6161
git rev-parse HEAD
6262
git fetch upstream ${{ inputs.base_branch }}:${{ inputs.base_branch }}
6363
git status

0 commit comments

Comments
 (0)