-
Notifications
You must be signed in to change notification settings - Fork 19
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
lthompson/APPEALS-50152 #23498
base: feature/APPEALS-47217-added-tests
Are you sure you want to change the base?
lthompson/APPEALS-50152 #23498
Conversation
@@ -6,6 +6,7 @@ | |||
require "base64" | |||
class Test::LoadTestsController < ApplicationController | |||
before_action :check_environment | |||
skip_before_action :verify_authenticity_token |
Check failure
Code scanning / CodeQL
CSRF protection weakened or disabled High test
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI about 8 hours ago
To fix the problem, we need to re-enable CSRF protection for the LoadTestsController
. This can be done by removing the skip_before_action :verify_authenticity_token
line. This change will ensure that all actions within this controller require a valid CSRF token, thereby protecting against CSRF attacks.
-
Copy modified line R9
@@ -8,3 +8,3 @@ | ||
before_action :check_environment | ||
skip_before_action :verify_authenticity_token | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line needs to be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolve CodeQL and merge conflicts before I can review this
@@ -6,6 +6,7 @@ | |||
require "base64" | |||
class Test::LoadTestsController < ApplicationController | |||
before_action :check_environment | |||
skip_before_action :verify_authenticity_token |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line needs to be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All additions to this file need to be redone. You need to pull latest from this feature and resolve conflicts. There is a new pattern that needs to be followed.
Resolves APPEALS-50152
Description
As a Caseflow developer I need to write k6 Test Case, so that endpoints can perform validations.
Acceptance Criteria
Testing Plan