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.
This commit is contained in:
Brian Gianforcaro 2021-10-02 00:02:25 -07:00 committed by Andreas Kling
commit dc99b702be
Notes: sideshowbarker 2024-07-18 03:12:24 +09:00

View file

@ -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