From abd43c386112f7d93a1c8b08f716e01a40c179f6 Mon Sep 17 00:00:00 2001 From: Lisa Malenfant Date: Mon, 28 Aug 2023 16:17:06 -0700 Subject: [PATCH] Update sonarcloud.yml --- .github/workflows/sonarcloud.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index d49d190..f29d872 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -14,6 +14,14 @@ jobs: Analysis: runs-on: ubuntu-latest steps: + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: 17 + distribution: 'adopt' # Alternative distribution options are available. + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Analyze with SonarCloud # You can pin the exact commit or the version. uses: SonarSource/sonarcloud-github-action@4b4d7634dab97dcee0b75763a54a6dc92a9e6bc1