Skip to content

Suppress false positive CodeQL warning on LocalOrchestrationService - #1348

Merged
Anatoli Beliaev (AnatoliB) merged 2 commits into
mainfrom
anatolib/codeql-fix-37181655-2
May 11, 2026
Merged

Anatoli Beliaev (AnatoliB) merged 2 commits into
mainfrom
anatolib/codeql-fix-37181655-2

Conversation

@AnatoliB

Copy link
Copy Markdown
Contributor

…alization security in in-proc testing context

Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings May 1, 2026 06:24
@AnatoliB
Anatoli Beliaev (AnatoliB) marked this pull request as ready for review May 1, 2026 06:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the DurableTask emulator’s in-proc orchestration state JSON serialization settings to suppress security analyzer warnings related to Json.NET TypeNameHandling.

Changes:

  • Adds System.Diagnostics.CodeAnalysis and [SuppressMessage] attributes for CA2326/CA2327 on the StateJsonSettings field.
  • Adds an inline comment explaining why the unsafe-deserialization warnings are considered a false positive for this emulator scenario.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <copilot@github.com>
@AnatoliB
Anatoli Beliaev (AnatoliB) merged commit 8b8f1e8 into main May 11, 2026
47 checks passed
@AnatoliB
Anatoli Beliaev (AnatoliB) deleted the anatolib/codeql-fix-37181655-2 branch May 11, 2026 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants