Update to matrix-org/sonarcloud-workflow-action@v2.1
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
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
|