From 6cbe57ef40d6df1c4f3d6d4ec68bba7b2c85006d Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 28 May 2023 06:17:34 +0200 Subject: [PATCH 01/11] Update qodana.yml Signed-off-by: James Cole --- .github/workflows/qodana.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/qodana.yml b/.github/workflows/qodana.yml index cb933a2508..fc9ce4fa9c 100644 --- a/.github/workflows/qodana.yml +++ b/.github/workflows/qodana.yml @@ -32,6 +32,6 @@ jobs: php artisan ide-helper:generate; - name: 'Qodana Scan' - uses: JetBrains/qodana-action@main + uses: JetBrains/qodana-action@v2023.1.1 env: QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} From 28749e2513ab773219ee74f7667edec88535cf52 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 28 May 2023 06:21:03 +0200 Subject: [PATCH 02/11] Update qodana.yml Signed-off-by: James Cole --- .github/workflows/qodana.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/qodana.yml b/.github/workflows/qodana.yml index fc9ce4fa9c..d7f4411566 100644 --- a/.github/workflows/qodana.yml +++ b/.github/workflows/qodana.yml @@ -32,6 +32,6 @@ jobs: php artisan ide-helper:generate; - name: 'Qodana Scan' - uses: JetBrains/qodana-action@v2023.1.1 + uses: JetBrains/qodana-action@v2023.1.0 env: QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} From 178df1ed4a9a6deb58e09ab90a450e6f5af55d7a Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 28 May 2023 06:24:06 +0200 Subject: [PATCH 03/11] Update qodana.yml Signed-off-by: James Cole --- .github/workflows/qodana.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/qodana.yml b/.github/workflows/qodana.yml index d7f4411566..cb933a2508 100644 --- a/.github/workflows/qodana.yml +++ b/.github/workflows/qodana.yml @@ -32,6 +32,6 @@ jobs: php artisan ide-helper:generate; - name: 'Qodana Scan' - uses: JetBrains/qodana-action@v2023.1.0 + uses: JetBrains/qodana-action@main env: QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} From 2e1e8b5d399422ff6e84a3771e6ce0eb07ec23e2 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 28 May 2023 15:54:48 +0200 Subject: [PATCH 04/11] Update qodana.yml Signed-off-by: James Cole --- .github/workflows/qodana.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/qodana.yml b/.github/workflows/qodana.yml index cb933a2508..8820c90839 100644 --- a/.github/workflows/qodana.yml +++ b/.github/workflows/qodana.yml @@ -32,6 +32,6 @@ jobs: php artisan ide-helper:generate; - name: 'Qodana Scan' - uses: JetBrains/qodana-action@main + uses: jetbrains/qodana-php@2022.3-eap env: QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} From 7c68a96f7ba7510dab645ac7145396762a4676db Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 28 May 2023 15:56:35 +0200 Subject: [PATCH 05/11] Update qodana.yml Signed-off-by: James Cole --- .github/workflows/qodana.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/qodana.yml b/.github/workflows/qodana.yml index 8820c90839..6bfc6c67c9 100644 --- a/.github/workflows/qodana.yml +++ b/.github/workflows/qodana.yml @@ -32,6 +32,6 @@ jobs: php artisan ide-helper:generate; - name: 'Qodana Scan' - uses: jetbrains/qodana-php@2022.3-eap + uses: JetBrains/qodana-php@2022.3-eap env: QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} From aad2ca44883db5ecf57ef0635eb9f377cac74e63 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 28 May 2023 15:58:48 +0200 Subject: [PATCH 06/11] Update qodana.yml Signed-off-by: James Cole --- .github/workflows/qodana.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/qodana.yml b/.github/workflows/qodana.yml index 6bfc6c67c9..d7f4411566 100644 --- a/.github/workflows/qodana.yml +++ b/.github/workflows/qodana.yml @@ -32,6 +32,6 @@ jobs: php artisan ide-helper:generate; - name: 'Qodana Scan' - uses: JetBrains/qodana-php@2022.3-eap + uses: JetBrains/qodana-action@v2023.1.0 env: QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} From 91947daa5be98d2403d17a1a69777095e4e8b661 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 28 May 2023 16:05:25 +0200 Subject: [PATCH 07/11] Create sonar-project.properties Signed-off-by: James Cole --- sonar-project.properties | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 sonar-project.properties diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000000..72777406a0 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,17 @@ +sonar.projectKey=firefly-iii_firefly-iii +sonar.organization=firefly-iii + +# This is the name and version displayed in the SonarCloud UI. +#sonar.projectName=firefly-iii +#sonar.projectVersion=1.0 + +# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. +#sonar.sources=. + +# Encoding of the source code. Default is default system encoding +#sonar.sourceEncoding=UTF-8 + + +sonar.projectVersion=6.0.11 +sonar.sources=app,bootstrap,database,resources/assets,resources/views,routes,tests +sonar.sourceEncoding=UTF-8 From 334d010a247056f2c537c4c0e7f233d96e6306aa Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 28 May 2023 16:07:08 +0200 Subject: [PATCH 08/11] Create sonarcloud.yaml Signed-off-by: James Cole --- .github/workflows/sonarcloud.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/sonarcloud.yaml diff --git a/.github/workflows/sonarcloud.yaml b/.github/workflows/sonarcloud.yaml new file mode 100644 index 0000000000..a5e4219c46 --- /dev/null +++ b/.github/workflows/sonarcloud.yaml @@ -0,0 +1,21 @@ +name: Sonarcloud +on: + push: + branches: + - main + - develop + pull_request: + types: [opened, synchronize, reopened] +jobs: + sonarcloud: + name: SonarCloud + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} From 79afe09d8d808a8851fea6c1c7bbb467742c42df Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 28 May 2023 16:07:47 +0200 Subject: [PATCH 09/11] Update cleanup.yml Signed-off-by: James Cole --- .github/workflows/cleanup.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index ddd75aa08e..f17a20cb0b 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -57,6 +57,7 @@ jobs: const workflows = [ 'cleanup.yml', 'depsreview.yaml', + 'closed-issues.yml', 'laravel.yml', 'lock.yml', 'stale.yml' From f45c20db1eabd569da1f86a193ab54f1425df67b Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 28 May 2023 16:08:34 +0200 Subject: [PATCH 10/11] Update cleanup.yml Signed-off-by: James Cole --- .github/workflows/cleanup.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index f17a20cb0b..52479da45c 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -57,6 +57,7 @@ jobs: const workflows = [ 'cleanup.yml', 'depsreview.yaml', + 'qodana.yml', 'closed-issues.yml', 'laravel.yml', 'lock.yml', From eba0e942e84776dfeb4bbb260d8157158d326d70 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 28 May 2023 16:08:47 +0200 Subject: [PATCH 11/11] Update sonarcloud.yaml Signed-off-by: James Cole --- .github/workflows/sonarcloud.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sonarcloud.yaml b/.github/workflows/sonarcloud.yaml index a5e4219c46..5e6bc93605 100644 --- a/.github/workflows/sonarcloud.yaml +++ b/.github/workflows/sonarcloud.yaml @@ -17,5 +17,5 @@ jobs: - name: SonarCloud Scan uses: SonarSource/sonarcloud-github-action@master env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any + GITHUB_TOKEN: ${{ secrets.GH_ACTIONS_PERSONAL_ACCESS_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}