CodeQL #484
Annotations
2 errors and 12 warnings
Initialize CodeQL
This version of the CodeQL Action was deprecated on January 18th, 2023, and is no longer updated or supported. For better performance, improved security, and new features, upgrade to v2. For more information, see https://github.blog/changelog/2023-01-18-code-scanning-codeql-action-v1-is-now-deprecated/
|
Perform CodeQL Analysis
This version of the CodeQL Action was deprecated on January 18th, 2023, and is no longer updated or supported. For better performance, improved security, and new features, upgrade to v2. For more information, see https://github.blog/changelog/2023-01-18-code-scanning-codeql-action-v1-is-now-deprecated/
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, github/codeql-action/init@v1, actions/setup-dotnet@v1, github/codeql-action/analyze@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Initialize CodeQL
1 issue was detected with this workflow: Using on.push.paths-ignore can prevent Code Scanning annotating new alerts in your pull requests.
|
Build:
src/Web.Client/Services/WeatherFunctionsClientService.cs#L26
Using member 'System.Net.Http.Json.HttpClientJsonExtensions.GetFromJsonAsync<Learning.Blazor.Models.WeatherDetails>(System.Net.Http.HttpClient, string?, System.Text.Json.JsonSerializerOptions?, System.Threading.CancellationToken)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
|
Build:
src/Web.Client/Services/GeoLocationService.cs#L25
Using member 'System.Net.Http.Json.HttpClientJsonExtensions.GetFromJsonAsync<Learning.Blazor.Models.GeoCode>(System.Net.Http.HttpClient, string?, System.Text.Json.JsonSerializerOptions?, System.Threading.CancellationToken)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
|
Build:
src/Web.Client/Extensions/WebAssemblyHostBuilderExtensions.cs#L16
Using member 'Microsoft.Extensions.DependencyInjection.OptionsConfigurationServiceCollectionExtensions.Configure<Learning.Blazor.Options.WebApiOptions>(Microsoft.Extensions.DependencyInjection.IServiceCollection, Microsoft.Extensions.Configuration.IConfiguration)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. TOptions's dependent types may have their members trimmed. Ensure all required members are preserved.
|
Build:
src/Web.Client/Extensions/WebAssemblyHostBuilderExtensions.cs#L62
Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(Microsoft.Extensions.Configuration.IConfiguration, string, object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.
|
Build:
src/Web.Client/Pages/Contact.razor.cs#L78
Using member 'System.Net.Http.Json.HttpClientJsonExtensions.PostAsJsonAsync<Learning.Blazor.Models.Requests.ContactRequest>(System.Net.Http.HttpClient, string?, Learning.Blazor.Models.Requests.ContactRequest, System.Text.Json.JsonSerializerOptions?, System.Threading.CancellationToken)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
|
Build:
src/Web.Client/Components/TaskListComponent.razor.cs#L29
Using member 'System.Net.Http.Json.HttpClientJsonExtensions.GetFromJsonAsync<System.Collections.Generic.IEnumerable<Learning.Blazor.Models.TodoItem>>(System.Net.Http.HttpClient, string?, System.Threading.CancellationToken)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
|
Build:
src/Web.Client/Components/TaskListComponent.razor.cs#L47
Using member 'System.Net.Http.Json.HttpClientJsonExtensions.PutAsJsonAsync<Learning.Blazor.Models.TodoItem>(System.Net.Http.HttpClient, string?, Learning.Blazor.Models.TodoItem, System.Text.Json.JsonSerializerOptions?, System.Threading.CancellationToken)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
|
Build:
src/Web.Client/Components/TaskListComponent.razor.cs#L96
Using member 'System.Net.Http.Json.HttpClientJsonExtensions.PostAsJsonAsync<Learning.Blazor.Models.Requests.CreateTodoRequest>(System.Net.Http.HttpClient, string?, Learning.Blazor.Models.Requests.CreateTodoRequest, System.Text.Json.JsonSerializerOptions?, System.Threading.CancellationToken)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
|
Build:
src/Web.Client/Components/LanguageSelectionComponent.razor.cs#L18
Using member 'System.Net.Http.Json.HttpClientJsonExtensions.GetFromJsonAsync<Learning.Blazor.Models.AzureTranslationCultures>(System.Net.Http.HttpClient, string?, System.Text.Json.JsonSerializerOptions?, System.Threading.CancellationToken)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
|
Build:
src/Web.Client/Services/WeatherFunctionsClientService.cs#L26
Using member 'System.Net.Http.Json.HttpClientJsonExtensions.GetFromJsonAsync<Learning.Blazor.Models.WeatherDetails>(System.Net.Http.HttpClient, string?, System.Text.Json.JsonSerializerOptions?, System.Threading.CancellationToken)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
|
The logs for this run have expired and are no longer available.
Loading