From dc99b702be90bb0788e79768171149050b86ed9c Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Sat, 2 Oct 2021 00:02:25 -0700 Subject: [PATCH] Meta: Include source sha in sonarcloud analysis metadata Having the version included in each analysis allows you to do more filtering in the UI where results are viewed. --- .github/workflows/sonar-cloud-static-analysis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/sonar-cloud-static-analysis.yml b/.github/workflows/sonar-cloud-static-analysis.yml index 8a156a27ba..fa7825f043 100644 --- a/.github/workflows/sonar-cloud-static-analysis.yml +++ b/.github/workflows/sonar-cloud-static-analysis.yml @@ -39,6 +39,7 @@ jobs: run: | echo "$HOME/.sonar/sonar-scanner-${{ env.SONAR_SCANNER_VERSION }}-linux/bin" >> $GITHUB_PATH echo "sonar.projectKey=SerenityOS_serenity" >> ${{ github.workspace }}/sonar-project.properties + echo "sonar.projectVersion=${{ github.sha }}" >> ${{ github.workspace }}/sonar-project.properties echo "sonar.organization=serenityos" >> ${{ github.workspace }}/sonar-project.properties echo "sonar.cfamily.compile-commands=${{ github.workspace }}/Build/${{ env.SONAR_ANALYSIS_ARCH }}/compile_commands.json" >> ${{ github.workspace }}/sonar-project.properties echo "sonar.cfamily.threads=2" >> ${{ github.workspace }}/sonar-project.properties