Update to matrix-org/sonarcloud-workflow-action@v2.1
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
10
.github/workflows/sonarqube.yml
vendored
10
.github/workflows/sonarqube.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user