Skip to content

Conversation

@redsun82
Copy link
Contributor

@redsun82 redsun82 commented Feb 4, 2026

Fixes #21255

@redsun82 redsun82 requested a review from a team as a code owner February 4, 2026 08:44
Copilot AI review requested due to automatic review settings February 4, 2026 08:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a change note documenting a fix to the C# CSRF query so it recognizes antiforgery attributes inherited from base controller classes.

Changes:

  • Added a change note entry for cs/web/missing-token-validation describing reduced false positives when antiforgery attributes are applied on parent classes.

---
category: fix
---
* The `cs/web/missing-token-validation` ("Missing cross-site request forgery token validation") query now recognizes antiforgery attributes on base controller classes, fixing false positives when `[ValidateAntiForgeryToken]` or `[AutoValidateAntiforgeryToken]` is applied to a parent class.
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The PR title/description indicate a functional fix to the cs/web/missing-token-validation query, but the diff shown here only adds a change note. If the query update is part of this PR, please include it in the changes; otherwise the change note will be inaccurate.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants