From a42fe48f442898513af96e1032da2633d7c2843b Mon Sep 17 00:00:00 2001 From: "David G. Moore, Jr" Date: Wed, 27 Sep 2023 05:12:02 -0500 Subject: [PATCH] Update sonarcloud.yml --- .github/workflows/sonarcloud.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index a44c3ed..020a2b0 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -15,15 +15,6 @@ jobs: with: java-version: 11 distribution: 'zulu' # Alternative distribution options are available. - - name: Checkout the repository being compiled - uses: actions/checkout@v3 - with: - path: Repo - - name: Checkout the Packages repository alongside the one being compiled - uses: actions/checkout@v3 - with: - repository: dgmjr-io/Packages - path: Packages - name: Cache SonarCloud packages uses: actions/cache@v3 with: @@ -43,13 +34,23 @@ jobs: run: | New-Item -Path .\.sonar\scanner -ItemType Directory dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner + - name: Checkout the repository being compiled + uses: actions/checkout@v3 + with: + path: Repo + - name: Checkout the Packages repository alongside the one being compiled + uses: actions/checkout@v3 + with: + repository: dgmjr-io/Packages + path: Packages - name: Run setup-dgmjrsdk uses: dgmjr-actions/setup-dgmjrsdk@main with: git-token: ${{ secrets.GITHUB_TOKEN }} environment: Release git-nuget-endpoint: ${{ vars.GIT_NUGET_ENDPOINT }} - private-nuget-endpoint: ${{ vars.DGMJR_IO_NUGET_ENDPOINT }} + private-nuget-endpoint: ${{ vars.PROGET_ENDPOINT_URL }} + private-nuget-api-key: ${{ secrets.PROGET_API_KEY }} - name: Build and analyze env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any