summary refs log tree commit diff
path: root/.github/workflows/sonarqube.yml
diff options
context:
space:
mode:
authorMichael Telatynski <7t3chguy@gmail.com>2022-06-01 15:08:03 +0100
committerMichael Telatynski <7t3chguy@gmail.com>2022-06-01 15:08:03 +0100
commitb06bd9954cb18782da8967fd84b8fa19bca95ea2 (patch)
tree950438ced39fc0481fa0f3dccd4348613ef01383 /.github/workflows/sonarqube.yml
parentRevert spacing tweak (diff)
downloadsynapse-b06bd9954cb18782da8967fd84b8fa19bca95ea2.tar.xz
Update to matrix-org/sonarcloud-workflow-action@v2.1
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Diffstat (limited to '.github/workflows/sonarqube.yml')
-rw-r--r--.github/workflows/sonarqube.yml10
1 files changed, 4 insertions, 6 deletions
diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml
index f31765fbee..405cc35273 100644
--- a/.github/workflows/sonarqube.yml
+++ b/.github/workflows/sonarqube.yml
@@ -18,17 +18,15 @@ jobs:
           ref: ${{ github.event.workflow_run.head_branch }} # checkout commit that triggered this workflow
           fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
       - uses: matrix-org/setup-python-poetry@v1
-      - name: Read Synapse version
-        id: version
-        run: echo "::set-output name=current-version::$(poetry version --short)"
       - name: SonarCloud Scan
-        uses: matrix-org/sonarcloud-workflow-action@v1
+        uses: matrix-org/sonarcloud-workflow-action@v2.1
         with:
           is_pr: ${{ github.event.workflow_run.event == 'pull_request' }}
-          owner: ${{ github.event.workflow_run.head_repository.owner.login }}
-          version: ${{ steps.version.outputs.current-version }}
+          repository: ${{ github.event.workflow_run.head_repository.full_name }}
+          version_cmd: 'poetry version --short'
           branch: ${{ github.event.workflow_run.head_branch }}
           revision: ${{ github.event.workflow_run.head_sha }}
           token: ${{ secrets.SONAR_TOKEN }}
           coverage_run_id: ${{ github.event.workflow_run.id }}
           coverage_workflow_name: tests.yml
+          skip_checkout: true