Skip to content

test of change request #1464

test of change request

test of change request #1464

Triggered via pull request November 20, 2024 07:30
Status Failure
Total duration 2m 7s
Artifacts

codeql-analysis.yml

on: pull_request
Matrix: Analyze
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 10 warnings
Analyze (csharp): src/Authentication/Services/ChangeRequestSystemUserService.cs#L815
A local variable or function named 'req' is already defined in this scope
Analyze (csharp): src/Authentication/Services/ChangeRequestSystemUserService.cs#L815
A local variable or function named 'req' is already defined in this scope
Analyze (csharp)
Assets file '/home/runner/work/altinn-authentication/altinn-authentication/src/Authentication/obj/project.assets.json' doesn't have a target for '.NETFramework,Version=v8.0'. Ensure that restore has run and that you have included 'net80' in the TargetFrameworks for your project.
Analyze (csharp)
Assets file '/home/runner/work/altinn-authentication/altinn-authentication/test/Altinn.Platform.Authentication.Tests/obj/project.assets.json' doesn't have a target for '.NETFramework,Version=v8.0'. Ensure that restore has run and that you have included 'net80' in the TargetFrameworks for your project.
Analyze (csharp)
Assets file '/home/runner/work/altinn-authentication/altinn-authentication/src/Persistance/obj/project.assets.json' doesn't have a target for '.NETFramework,Version=v8.0'. Ensure that restore has run and that you have included 'net80' in the TargetFrameworks for your project.
Analyze (csharp)
Assets file '/home/runner/work/altinn-authentication/altinn-authentication/src/Core/obj/project.assets.json' doesn't have a target for '.NETFramework,Version=v8.0'. Ensure that restore has run and that you have included 'net80' in the TargetFrameworks for your project.
Analyze (csharp)
Assets file '/home/runner/work/altinn-authentication/altinn-authentication/src/Integration/obj/project.assets.json' doesn't have a target for '.NETFramework,Version=v8.0'. Ensure that restore has run and that you have included 'net80' in the TargetFrameworks for your project.
Analyze (csharp)
Assets file '/home/runner/work/altinn-authentication/altinn-authentication/test/Altinn.Platform.Authentication.SystemIntegrationTests/obj/project.assets.json' doesn't have a target for '.NETFramework,Version=v8.0'. Ensure that restore has run and that you have included 'net80' in the TargetFrameworks for your project.
Analyze (csharp)
We were unable to automatically build your code. Please replace the call to the autobuild action with your custom build steps. Encountered a fatal error while running "/opt/hostedtoolcache/CodeQL/2.19.3/x64/codeql/csharp/tools/autobuild.sh". Exit code was 1 and last log line was: Error: Could not auto-detect a suitable build method. See the logs for more details.
Analyze (csharp): test/Altinn.Platform.Authentication.SystemIntegrationTests/Tests/SystemRegisterState.cs#L16
Non-nullable property 'RedirectUrl' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
Analyze (csharp): test/Altinn.Platform.Authentication.SystemIntegrationTests/Tests/SystemUserTests.cs#L285
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
Analyze (csharp): test/Altinn.Platform.Authentication.SystemIntegrationTests/Tests/SystemUserTests.cs#L87
Public method 'GetCreatedSystemUser' on test class 'SystemUserTests' should be marked as a Fact. Reduce the visibility of the method, or add a Fact attribute to the method. (https://xunit.net/xunit.analyzers/rules/xUnit1013)
Analyze (csharp): test/Altinn.Platform.Authentication.SystemIntegrationTests/Tests/SystemUserTests.cs#L285
Public method 'UseSystemUser' on test class 'SystemUserTests' should be marked as a Fact. Reduce the visibility of the method, or add a Fact attribute to the method. (https://xunit.net/xunit.analyzers/rules/xUnit1013)
Analyze (csharp): test/Altinn.Platform.Authentication.SystemIntegrationTests/Tests/SystemRegisterTests.cs#L141
Public method 'UpdateRegisteredSystemReturns200Ok' on test class 'SystemRegisterTests' should be marked as a Fact. Reduce the visibility of the method, or add a Fact attribute to the method. (https://xunit.net/xunit.analyzers/rules/xUnit1013)
Analyze (csharp): src/Core/Extensions/HttpClientExtensions.cs#L17
Cannot convert null literal to non-nullable reference type.
Analyze (csharp): src/Core/Extensions/HttpClientExtensions.cs#L39
Cannot convert null literal to non-nullable reference type.