Thanks to visit codestin.com
Credit goes to github.com

Skip to content

C#: Add another test for MissingAccessControl.ql #19826

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2025

Conversation

hvitved
Copy link
Contributor

@hvitved hvitved commented Jun 20, 2025

No description provided.

@github-actions github-actions bot added the C# label Jun 20, 2025
@hvitved hvitved marked this pull request as ready for review June 20, 2025 11:41
@Copilot Copilot AI review requested due to automatic review settings June 20, 2025 11:41
@hvitved hvitved requested a review from a team as a code owner June 20, 2025 11:41
Copy link
Contributor

@Copilot 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 new test to verify that an action method decorated with an Authorize attribute is correctly recognized by the MissingAccessControl query.

  • Introduce Delete5(int id) method with [Authorize("foo")] to represent a secure endpoint in MVC tests.

Copy link
Contributor

@michaelnebel michaelnebel left a comment

Choose a reason for hiding this comment

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

LGTM!

@hvitved hvitved merged commit 12cda86 into github:main Jun 23, 2025
16 checks passed
@hvitved hvitved deleted the csharp/function-auth-test branch June 23, 2025 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants