2022-05-02 22:34:31 +02:00
|
|
|
name: SonarQube
|
|
|
|
on:
|
2022-12-12 12:24:14 +01:00
|
|
|
workflow_run:
|
|
|
|
workflows: ["Tests"]
|
|
|
|
types:
|
|
|
|
- completed
|
2022-05-14 00:25:50 +02:00
|
|
|
concurrency:
|
2022-12-12 12:24:14 +01:00
|
|
|
group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch }}
|
|
|
|
cancel-in-progress: true
|
2024-11-20 16:44:02 +01:00
|
|
|
permissions: {}
|
2022-05-02 22:34:31 +02:00
|
|
|
jobs:
|
2022-12-12 12:24:14 +01:00
|
|
|
sonarqube:
|
|
|
|
name: 🩻 SonarQube
|
2024-01-05 17:59:48 +01:00
|
|
|
if: github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event != 'merge_group'
|
2022-12-12 12:24:14 +01:00
|
|
|
uses: matrix-org/matrix-js-sdk/.github/workflows/sonarcloud.yml@develop
|
2024-11-20 16:44:02 +01:00
|
|
|
permissions:
|
|
|
|
actions: read
|
|
|
|
statuses: write
|
|
|
|
id-token: write # sonar
|
2022-12-12 12:24:14 +01:00
|
|
|
secrets:
|
|
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
2024-01-19 10:03:04 +01:00
|
|
|
ELEMENT_BOT_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
2024-01-05 17:59:48 +01:00
|
|
|
with:
|
|
|
|
sharded: true
|