SonarCloud not reporting any files when ran inside github actions

Hi,

I am trying to configure the dotnet scanner to run on my PR’s. I tried it on my own machine before making a GitHub action and everything turned out fantastic.

I am having an issue where on the workflow in GitHub, I see the exact same logs as on my local machine but when I run on my local machine SonarCloud reports issues and on my PR it reports no issues.

Report that my machine sent:

SonarCloud report in PR:

If anyone could take a look at the logs or has any insight on what might be the issue that would be fantastic.

Here’s some extra info that may be needed,

Root file structure (looks the same in the workflow and my machine):
image

Logs:

Run dotnet sonarscanner begin /k:"***" /o:"***" /d:sonar.login="***" /d:sonar.host.url="https://sonarcloud.io"
dotnet sonarscanner begin /k:"***" /o:"***" /d:sonar.login="***" /d:sonar.host.url="https://sonarcloud.io"e[0m
dotnet build Dwarf-Capstone.slne[0m
dotnet sonarscanner end /d:sonar.login="***"e[0m
shell: C:\windows\System32\WindowsPowerShell\v1.0\powershell.EXE -command ". '{0}'"
env:
  JAVA_HOME_11.0.8_x64: C:\hostedtoolcache\windows\jdk\11.0.8\x64
  JAVA_HOME: C:\hostedtoolcache\windows\jdk\11.0.8\x64
  JAVA_HOME_11_0_8_X64: C:\hostedtoolcache\windows\jdk\11.0.8\x64
  GITHUB_TOKEN: ***
  SONAR_TOKEN: ***
##[endgroup]
SonarScanner for MSBuild 4.10
Using the .NET Core version of the Scanner for MSBuild
Pre-processing started.
Preparing working directories...
17:33:44.01  Updating build integration targets...
17:33:44.106  Fetching analysis configuration settings...
17:33:47.01  Provisioning analyzer assemblies for cs...
17:33:47.012  Installing required Roslyn analyzers...
17:33:51.13  Provisioning analyzer assemblies for vbnet...
17:33:51.13  Installing required Roslyn analyzers...
17:33:51.158  Pre-processing succeeded.
Microsoft (R) Build Engine version 16.7.0+7fb82e5b2 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
  Failed to download package 'Google.Apis.1.49.0' from 'https://api.nuget.org/v3-flatcontainer/google.apis/1.49.0/google.apis.1.49.0.nupkg'.
  No connection could be made because the target machine actively refused it.
  Restored D:\a\dwarf\dwarf\src\IdentityServer\IdentityServer.csproj (in 29.15 sec).
  Restored D:\a\dwarf\dwarf\src\Client\Client.csproj (in 28 ms).
  Restored D:\a\dwarf\dwarf\src\Api\Api.csproj (in 2.03 sec).
  Restored D:\a\dwarf\dwarf\test\test.csproj (in 31.24 sec).
Startup.cs(21,13): warning S125: Remove this commented out code. [D:\a\dwarf\dwarf\src\IdentityServer\IdentityServer.csproj]
Startup.cs(45,13): warning S125: Remove this commented out code. [D:\a\dwarf\dwarf\src\IdentityServer\IdentityServer.csproj]
Startup.cs(51,13): warning S125: Remove this commented out code. [D:\a\dwarf\dwarf\src\IdentityServer\IdentityServer.csproj]
Program.cs(11,18): warning S1118: Add a 'protected' constructor or the 'static' keyword to the class declaration. [D:\a\dwarf\dwarf\src\IdentityServer\IdentityServer.csproj]
Program.cs(15,26): warning S4792: Make sure that this logger's configuration is safe. [D:\a\dwarf\dwarf\src\IdentityServer\IdentityServer.csproj]
  IdentityServer -> D:\a\dwarf\dwarf\src\IdentityServer\bin\Debug\netcoreapp3.1\IdentityServer.dll
  Sonar: (IdentityServer.csproj) Project processed successfully
Controllers\IdentityController.cs(90,12): warning S1135: Complete the task associated to this 'TODO' comment. [D:\a\dwarf\dwarf\src\Api\Api.csproj]
Startup.cs(71,13): warning S125: Remove this commented out code. [D:\a\dwarf\dwarf\src\Api\Api.csproj]
Common\ExternalLoginTypeEnum.cs(3,17): warning S2344: Rename this enumeration to remove the 'Enum' suffix. [D:\a\dwarf\dwarf\src\Api\Api.csproj]
Program.cs(6,18): warning S1118: Add a 'protected' constructor or the 'static' keyword to the class declaration. [D:\a\dwarf\dwarf\src\Api\Api.csproj]
Services\AuthenticationService.cs(11,18): warning S1118: Add a 'protected' constructor or the 'static' keyword to the class declaration. [D:\a\dwarf\dwarf\src\Api\Api.csproj]
Controllers\IdentityController.cs(140,44): warning S1075: Refactor your code not to use hardcoded absolute paths or URIs. [D:\a\dwarf\dwarf\src\Api\Api.csproj]
Controllers\IdentityController.cs(179,21): warning S1481: Remove the unused local variable 'result'. [D:\a\dwarf\dwarf\src\Api\Api.csproj]
Services\MailerService.cs(48,21): warning S4830: Enable server certificate validation on this SSL/TLS connection [D:\a\dwarf\dwarf\src\Api\Api.csproj]
Services\MailerService.cs(76,23): warning S1075: Refactor your code not to use hardcoded absolute paths or URIs. [D:\a\dwarf\dwarf\src\Api\Api.csproj]
Models\AppDbContext.cs(16,9): warning S1185: Remove this method 'OnModelCreating' to simply inherit its behavior. [D:\a\dwarf\dwarf\src\Api\Api.csproj]
  Api -> D:\a\dwarf\dwarf\src\Api\bin\Debug\netcoreapp3.1\Api.dll
  Sonar: (Api.csproj) Project processed successfully
Program.cs(9,11): warning S1118: Add a 'protected' constructor or the 'static' keyword to the class declaration. [D:\a\dwarf\dwarf\src\Client\Client.csproj]
Program.cs(46,53): warning S1075: Refactor your code not to use hardcoded absolute paths or URIs. [D:\a\dwarf\dwarf\src\Client\Client.csproj]
  Client -> D:\a\dwarf\dwarf\src\Client\bin\Debug\netcoreapp3.1\Client.dll
  Sonar: (Client.csproj) Project processed successfully
  test -> D:\a\dwarf\dwarf\test\bin\Debug\netcoreapp3.1\test.dll
  Sonar: (test.csproj) Project processed successfully

Build succeeded.

Startup.cs(21,13): warning S125: Remove this commented out code. [D:\a\dwarf\dwarf\src\IdentityServer\IdentityServer.csproj]
Startup.cs(45,13): warning S125: Remove this commented out code. [D:\a\dwarf\dwarf\src\IdentityServer\IdentityServer.csproj]
Startup.cs(51,13): warning S125: Remove this commented out code. [D:\a\dwarf\dwarf\src\IdentityServer\IdentityServer.csproj]
Program.cs(11,18): warning S1118: Add a 'protected' constructor or the 'static' keyword to the class declaration. [D:\a\dwarf\dwarf\src\IdentityServer\IdentityServer.csproj]
Program.cs(15,26): warning S4792: Make sure that this logger's configuration is safe. [D:\a\dwarf\dwarf\src\IdentityServer\IdentityServer.csproj]
Controllers\IdentityController.cs(90,12): warning S1135: Complete the task associated to this 'TODO' comment. [D:\a\dwarf\dwarf\src\Api\Api.csproj]
Startup.cs(71,13): warning S125: Remove this commented out code. [D:\a\dwarf\dwarf\src\Api\Api.csproj]
Common\ExternalLoginTypeEnum.cs(3,17): warning S2344: Rename this enumeration to remove the 'Enum' suffix. [D:\a\dwarf\dwarf\src\Api\Api.csproj]
Program.cs(6,18): warning S1118: Add a 'protected' constructor or the 'static' keyword to the class declaration. [D:\a\dwarf\dwarf\src\Api\Api.csproj]
Services\AuthenticationService.cs(11,18): warning S1118: Add a 'protected' constructor or the 'static' keyword to the class declaration. [D:\a\dwarf\dwarf\src\Api\Api.csproj]
Controllers\IdentityController.cs(140,44): warning S1075: Refactor your code not to use hardcoded absolute paths or URIs. [D:\a\dwarf\dwarf\src\Api\Api.csproj]
Controllers\IdentityController.cs(179,21): warning S1481: Remove the unused local variable 'result'. [D:\a\dwarf\dwarf\src\Api\Api.csproj]
Services\MailerService.cs(48,21): warning S4830: Enable server certificate validation on this SSL/TLS connection [D:\a\dwarf\dwarf\src\Api\Api.csproj]
Services\MailerService.cs(76,23): warning S1075: Refactor your code not to use hardcoded absolute paths or URIs. [D:\a\dwarf\dwarf\src\Api\Api.csproj]
Models\AppDbContext.cs(16,9): warning S1185: Remove this method 'OnModelCreating' to simply inherit its behavior. [D:\a\dwarf\dwarf\src\Api\Api.csproj]
Program.cs(9,11): warning S1118: Add a 'protected' constructor or the 'static' keyword to the class declaration. [D:\a\dwarf\dwarf\src\Client\Client.csproj]
Program.cs(46,53): warning S1075: Refactor your code not to use hardcoded absolute paths or URIs. [D:\a\dwarf\dwarf\src\Client\Client.csproj]
    17 Warning(s)
    0 Error(s)

Time Elapsed 00:00:49.38
SonarScanner for MSBuild 4.10
Using the .NET Core version of the Scanner for MSBuild
Post-processing started.
WARNING: File 'C:\Users\runneradmin\.nuget\packages\microsoft.net.test.sdk\16.7.1\build\netcoreapp2.1\Microsoft.NET.Test.Sdk.Program.cs' is not located under the root directory 'D:\a\dwarf\dwarf' and will not be analyzed.
WARNING: File 'C:\Users\runneradmin\.nuget\packages\microsoft.testplatform.testhost\16.7.1\build\netcoreapp2.1\x64\testhost.exe' is not located under the root directory 'D:\a\dwarf\dwarf' and will not be analyzed.
WARNING: File 'C:\Users\runneradmin\.nuget\packages\microsoft.testplatform.testhost\16.7.1\build\netcoreapp2.1\x64\testhost.dll' is not located under the root directory 'D:\a\dwarf\dwarf' and will not be analyzed.
WARNING: File 'C:\Users\runneradmin\.nuget\packages\mstest.testadapter\2.1.2\build\_common\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll' is not located under the root directory 'D:\a\dwarf\dwarf' and will not be analyzed.
WARNING: File 'C:\Users\runneradmin\.nuget\packages\mstest.testadapter\2.1.2\build\_common\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.dll' is not located under the root directory 'D:\a\dwarf\dwarf' and will not be analyzed.
WARNING: File 'C:\Users\runneradmin\.nuget\packages\mstest.testadapter\2.1.2\build\netcoreapp1.0\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll' is not located under the root directory 'D:\a\dwarf\dwarf' and will not be analyzed.
Calling the SonarQube Scanner...
INFO: Scanner configuration file: C:\Users\runneradmin\.dotnet\tools\.store\dotnet-sonarscanner\4.10.0\dotnet-sonarscanner\4.10.0\tools\netcoreapp3.0\any\sonar-scanner-4.4.0.2170\bin\..\conf\sonar-scanner.properties
INFO: Project root configuration file: D:\a\dwarf\dwarf\.sonarqube\out\sonar-project.properties
INFO: SonarScanner 4.4.0.2170
INFO: Java 11.0.8 Azul Systems, Inc. (64-bit)
INFO: Windows Server 2019 10.0 amd64
INFO: User cache: C:\Users\runneradmin\.sonar\cache
INFO: Scanner configuration file: C:\Users\runneradmin\.dotnet\tools\.store\dotnet-sonarscanner\4.10.0\dotnet-sonarscanner\4.10.0\tools\netcoreapp3.0\any\sonar-scanner-4.4.0.2170\bin\..\conf\sonar-scanner.properties
INFO: Project root configuration file: D:\a\dwarf\dwarf\.sonarqube\out\sonar-project.properties
INFO: Analyzing on SonarCloud
INFO: Default locale: "en_US", source code encoding: "windows-1252" (analysis is platform dependent)
INFO: Load global settings
INFO: Load global settings (done) | time=580ms
INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu
INFO: User cache: C:\Users\runneradmin\.sonar\cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=147ms
INFO: Load/download plugins (done) | time=25371ms
INFO: Loaded core extensions: developer-scanner
INFO: JavaScript/TypeScript frontend is enabled
INFO: Process project properties
INFO: Execute project builders
INFO: Execute project builders (done) | time=43ms
INFO: Project key: Snow-White-and-the-7-Dwarfs_dwarf
INFO: Base dir: D:\a\dwarf\dwarf
INFO: Working dir: D:\a\dwarf\dwarf\.sonarqube\out\.sonar
INFO: Load project settings for component key: 'Snow-White-and-the-7-Dwarfs_dwarf'
INFO: Load project settings for component key: 'Snow-White-and-the-7-Dwarfs_dwarf' (done) | time=161ms
INFO: Found an active CI vendor: 'Github Actions'
INFO: Load project branches
INFO: Load project branches (done) | time=136ms
INFO: Check ALM binding of project 'Snow-White-and-the-7-Dwarfs_dwarf'
INFO: Detected project binding: BOUND
INFO: Check ALM binding of project 'Snow-White-and-the-7-Dwarfs_dwarf' (done) | time=105ms
INFO: Load project pull requests
INFO: Load project pull requests (done) | time=122ms
INFO: Load branch configuration
INFO: Github event: pull_request
INFO: Auto-configuring pull request 13
INFO: Load branch configuration (done) | time=601ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=176ms
INFO: Load active rules
INFO: Load active rules (done) | time=3380ms
INFO: Organization key: snow-white-and-the-7-dwarfs
INFO: Pull request 13 for merge into develop from feature/B2C-129-add-github-action
INFO: SCM collecting changed files in the branch
INFO: SCM collecting changed files in the branch (done) | time=342ms
INFO: Indexing files...
INFO: Project configuration:
INFO: Indexing files of module 'IdentityServer'
INFO:   Base dir: D:\a\dwarf\dwarf\src\IdentityServer
INFO:   Source paths: Config.cs, Program.cs, Startup.cs, obj/Debug/netcoreapp3.1/.N...
INFO: Indexing files of module 'Client'
INFO:   Base dir: D:\a\dwarf\dwarf\src\Client
INFO:   Source paths: Program.cs
INFO: Indexing files of module 'Api'
INFO:   Base dir: D:\a\dwarf\dwarf\src\Api
INFO:   Source paths: Common/ExternalLoginTypeEnum.cs, Controllers/IdentityControll...
INFO: Indexing files of module 'test'
INFO:   Base dir: D:\a\dwarf\dwarf\test
INFO:   Test paths: DefaultTest.cs
INFO: Indexing files of module 'Snow-White-and-the-7-Dwarfs_dwarf'
INFO:   Base dir: D:\a\dwarf\dwarf
INFO: 31 files indexed
INFO: 4 files ignored because of scm ignore settings
INFO: Quality profile for cs: Sonar way
INFO: Quality profile for web: Sonar way
INFO: ------------- Run sensors on module test
INFO: JavaScript/TypeScript frontend is enabled
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=110ms
WARNING: WARNING: An illegal reflective access operation has occurred
WARNING: WARNING: Illegal reflective access by net.sf.cglib.core.ReflectUtils$1 (file:/C:/Users/runneradmin/.sonar/cache/a89f1943fc75b65becd9fb4ecab8d913/sonar-tsql-plugin.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: WARNING: Please consider reporting this to the maintainers of net.sf.cglib.core.ReflectUtils$1
WARNING: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: WARNING: All illegal access operations will be denied in a future release
INFO: Sensor SonarCSS Rules [cssfamily]
INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
INFO: Sensor SonarCSS Rules [cssfamily] (done) | time=2ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=3ms
INFO: Sensor JavaXmlSensor [java]
INFO: Sensor JavaXmlSensor [java] (done) | time=1ms
INFO: Sensor VB.NET Properties [vbnet]
INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=12ms
INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=1ms
INFO: ------------- Run sensors on module Api
INFO: JavaScript/TypeScript frontend is enabled
INFO: Sensor SonarCSS Rules [cssfamily]
INFO: 1 source files to be analyzed
INFO: 1/1 source files have been analyzed
INFO: Sensor SonarCSS Rules [cssfamily] (done) | time=6498ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=0ms
INFO: Sensor JavaXmlSensor [java]
INFO: Sensor JavaXmlSensor [java] (done) | time=0ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=80ms
INFO: Sensor VB.NET Properties [vbnet]
INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=1ms
INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=1ms
INFO: ------------- Run sensors on module IdentityServer
INFO: JavaScript/TypeScript frontend is enabled
INFO: Sensor SonarCSS Rules [cssfamily]
INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
INFO: Sensor SonarCSS Rules [cssfamily] (done) | time=1ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=1ms
INFO: Sensor JavaXmlSensor [java]
INFO: Sensor JavaXmlSensor [java] (done) | time=0ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=1ms
INFO: Sensor VB.NET Properties [vbnet]
INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=1ms
INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=0ms
INFO: ------------- Run sensors on module Client
INFO: JavaScript/TypeScript frontend is enabled
INFO: Sensor SonarCSS Rules [cssfamily]
INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
INFO: Sensor SonarCSS Rules [cssfamily] (done) | time=1ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=1ms
INFO: Sensor JavaXmlSensor [java]
INFO: Sensor JavaXmlSensor [java] (done) | time=1ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=0ms
INFO: Sensor VB.NET Properties [vbnet]
INFO: Sensor VB.NET Properties [vbnet] (done) | time=1ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=1ms
INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=1ms
INFO: ------------- Run sensors on module Snow-White-and-the-7-Dwarfs_dwarf
INFO: JavaScript/TypeScript frontend is enabled
INFO: Sensor SonarCSS Rules [cssfamily]
INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
INFO: Sensor SonarCSS Rules [cssfamily] (done) | time=0ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=0ms
INFO: Sensor JavaXmlSensor [java]
INFO: Sensor JavaXmlSensor [java] (done) | time=0ms
INFO: Sensor VB.NET Properties [vbnet]
INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=1ms
INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=1ms
INFO: Sensor JavaSecuritySensor [security]
INFO: Reading type hierarchy from: D:\a\dwarf\dwarf\.sonarqube\out\.sonar\ucfg2\java
INFO: Read 0 type definitions
INFO: Reading UCFGs from: D:\a\dwarf\dwarf\.sonarqube\out\.sonar\ucfg2\java
INFO: No UCFGs have been included for analysis.
INFO: Sensor JavaSecuritySensor [security] (done) | time=3ms
INFO: Sensor CSharpSecuritySensor [security]
INFO: Reading type hierarchy from: D:\a\dwarf\dwarf\.sonarqube\out\ucfg_cs2
INFO: Read 26 type definitions
INFO: Reading UCFGs from: D:\a\dwarf\dwarf\.sonarqube\out\ucfg_cs2
INFO: 17:35:30.2327068 Building Type propagation graph
INFO: 17:35:30.2547103 Running Tarjan on 455 nodes
INFO: 17:35:30.259712 Tarjan found 455 components
INFO: 17:35:30.2657117 Variable type analysis: done
INFO: 17:35:30.2677136 Building Type propagation graph
INFO: 17:35:30.2777096 Running Tarjan on 455 nodes
INFO: 17:35:30.2787088 Tarjan found 455 components
INFO: 17:35:30.2797106 Variable type analysis: done
INFO: Analyzing 169 ucfgs to detect vulnerabilities.
INFO: All rules entrypoints : 1 Retained UCFGs : 19
INFO: rule: S5131, entrypoints: 0
INFO: rule: S5131 done
INFO: rule: S3649, entrypoints: 0
INFO: rule: S3649 done
INFO: rule: S2076, entrypoints: 0
INFO: rule: S2076 done
INFO: rule: S2091, entrypoints: 0
INFO: rule: S2091 done
INFO: rule: S2078, entrypoints: 0
INFO: rule: S2078 done
INFO: rule: S2631, entrypoints: 0
INFO: rule: S2631 done
INFO: rule: S2083, entrypoints: 0
INFO: rule: S2083 done
INFO: rule: S5167, entrypoints: 0
INFO: rule: S5167 done
INFO: rule: S5144, entrypoints: 1
INFO: Running symbolic analysis
INFO: rule: S5144 done
INFO: rule: S5145, entrypoints: 0
INFO: rule: S5145 done
INFO: rule: S5146, entrypoints: 0
INFO: rule: S5146 done
INFO: rule: S5135, entrypoints: 0
INFO: rule: S5135 done
INFO: Sensor CSharpSecuritySensor [security] (done) | time=789ms
INFO: Sensor PhpSecuritySensor [security]
INFO: Reading type hierarchy from: D:\a\dwarf\dwarf\.sonarqube\out\.sonar\ucfg2\php
INFO: Read 0 type definitions
INFO: Reading UCFGs from: D:\a\dwarf\dwarf\.sonarqube\out\.sonar\ucfg2\php
INFO: No UCFGs have been included for analysis.
INFO: Sensor PhpSecuritySensor [security] (done) | time=0ms
INFO: Sensor PythonSecuritySensor [security]
INFO: Reading type hierarchy from: D:\a\dwarf\dwarf\.sonarqube\out\.sonar\ucfg2\python
INFO: Read 0 type definitions
INFO: Reading UCFGs from: D:\a\dwarf\dwarf\.sonarqube\out\.sonar\ucfg2\python
INFO: No UCFGs have been included for analysis.
INFO: Sensor PythonSecuritySensor [security] (done) | time=1ms
INFO: Sensor JsSecuritySensor [security]
INFO: Reading type hierarchy from: D:\a\dwarf\dwarf\.sonarqube\out\.sonar\ucfg2\js
INFO: Read 0 type definitions
INFO: Reading UCFGs from: D:\a\dwarf\dwarf\.sonarqube\out\.sonar\ucfg2\js
INFO: No UCFGs have been included for analysis.
INFO: Sensor JsSecuritySensor [security] (done) | time=1ms
INFO: ------------- Run sensors on project
INFO: Sensor C# [csharp]
INFO: Importing results from 5 proto files in 'D:\a\dwarf\dwarf\.sonarqube\out\3\output-cs'
INFO: Importing results from 5 proto files in 'D:\a\dwarf\dwarf\.sonarqube\out\0\output-cs'
INFO: Importing results from 5 proto files in 'D:\a\dwarf\dwarf\.sonarqube\out\1\output-cs'
INFO: Importing results from 5 proto files in 'D:\a\dwarf\dwarf\.sonarqube\out\2\output-cs'
INFO: Importing 4 Roslyn reports
INFO: Sensor C# [csharp] (done) | time=239ms
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=19ms
INFO: CPD Executor 3 files had no CPD blocks
INFO: CPD Executor Calculating CPD for 21 files
INFO: CPD Executor CPD calculation finished (done) | time=35ms
INFO: SCM writing changed lines
INFO: SCM writing changed lines (done) | time=7ms
INFO: Analysis report generated in 257ms, dir size=179 KB
INFO: Analysis report compressed in 43ms, zip size=49 KB
INFO: Analysis report uploaded in 264ms
INFO: ANALYSIS SUCCESSFUL, you can find the results at: https://sonarcloud.io/dashboard?id=Snow-White-and-the-7-Dwarfs_dwarf&pullRequest=13
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at https://sonarcloud.io/api/ce/task?id=AXVB7jUOW6RL6b7cYi9V
INFO: Analysis total time: 20.247 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 49.974s
INFO: Final Memory: 31M/104M
INFO: ------------------------------------------------------------------------
The SonarQube Scanner has finished
17:35:31.915  Post-processing succeeded.

Hi Jake, welcome to the SonarSource Community!

To be clear, when you were running the analysis from your local workstation, was it the contents of the PR branch that you were analyzing? You might have noticed that, in this case, they were displayed as “overall code” (white background). I’m guessing you didn’t include any parameters identifying the analysis as being for a Pull Request.

When, as in the case of your logged analysis, the scanner knows the context is for a PR, it changes how issues are regarded and reported. A PR’s analysis results will only show you issues that were introduced by code that is new or changed compared to the target branch for the PR.

This likely explains the difference between your local experimentation and what you’re seeing now.

So if I introduce new code to the repo that I know will produce a code smell that would be a better way of testing that the system is up and running?

I will give that a go, and report back my findings. Hopefully that solves the issue. Thanks

I added a TODO comment in the code and it showed up!. Thanks for the quick reply!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.