Skip to content

Suppress SM05220 in src/DurableTask.AzureStorage/MessageManager.cs#1342

Merged
AnatoliB merged 2 commits into
mainfrom
anatolib/codeql-fix-37181656
May 11, 2026
Merged

Suppress SM05220 in src/DurableTask.AzureStorage/MessageManager.cs#1342
AnatoliB merged 2 commits into
mainfrom
anatolib/codeql-fix-37181656

Conversation

@AnatoliB

@AnatoliB AnatoliB commented May 1, 2026

Copy link
Copy Markdown
Contributor

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

This PR suppresses a security analyzer finding (SM05220) in MessageManager by explicitly documenting and justifying the use of Json.NET TypeNameHandling.Objects (with a serialization binder) when round-tripping polymorphic DurableTask history payloads through customer-owned Azure Storage.

Changes:

  • Added SuppressMessage attributes to silence .NET security analyzer warnings (CA2326/CA2327) for the MessageManager constructor.
  • Added an inline rationale comment describing why TypeNameHandling.Objects is required in this component and how the trust boundary is considered.

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

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


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

Co-authored-by: Copilot <copilot@github.com>
@AnatoliB AnatoliB merged commit a96402a into main May 11, 2026
47 checks passed
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