Skip to content

Added more test to the Security package #5

Added more test to the Security package

Added more test to the Security package #5

Triggered via pull request November 22, 2024 18:27
Status Success
Total duration 1m 38s
Artifacts

build-test-security.yml

on: pull_request
build-and-test  /  build-and-test
1m 27s
build-and-test / build-and-test
Fit to window
Zoom out
Zoom in

Annotations

6 warnings
build-and-test / build-and-test: src/DfE.CoreLibs.Security/Authorization/ApiOboTokenService.cs#L43
Change this condition so that it does not always evaluate to 'False'. (https://rules.sonarsource.com/csharp/RSPEC-2589)
build-and-test / build-and-test: src/DfE.CoreLibs.Security/Authorization/Events/RejectSessionCookieWhenAccountNotInCacheEvents.cs#L56
Either log this exception and handle it, or rethrow it with some contextual information. (https://rules.sonarsource.com/csharp/RSPEC-2139)
build-and-test / build-and-test: src/DfE.CoreLibs.Security/Authorization/AuthorizationExtensions.cs#L25
Refactor this method to reduce its Cognitive Complexity from 41 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
build-and-test / build-and-test: src/DfE.CoreLibs.Security/Authorization/ApiOboTokenService.cs#L43
Change this condition so that it does not always evaluate to 'False'. (https://rules.sonarsource.com/csharp/RSPEC-2589)
build-and-test / build-and-test: src/DfE.CoreLibs.Security/Authorization/Events/RejectSessionCookieWhenAccountNotInCacheEvents.cs#L56
Either log this exception and handle it, or rethrow it with some contextual information. (https://rules.sonarsource.com/csharp/RSPEC-2139)
build-and-test / build-and-test: src/DfE.CoreLibs.Security/Authorization/AuthorizationExtensions.cs#L25
Refactor this method to reduce its Cognitive Complexity from 41 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)