-
Notifications
You must be signed in to change notification settings - Fork 734
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
Use Prism parser by default #1897
Conversation
DryRun Security SummaryThe provided text summarizes updates to the Brakeman security scanner for Ruby on Rails applications, focusing on dependency management, parsing improvements, and enhanced security test coverage to optimize the tool's effectiveness in identifying potential vulnerabilities. Expand for full summarySummary: The provided code changes cover various updates and improvements to the Brakeman security scanner for Ruby on Rails applications. The changes span multiple files, including the build script, Gemfile, and several files related to the Brakeman gem itself. Overall, the changes appear to be focused on optimizing the Brakeman gem, improving its parsing capabilities, and enhancing the security testing functionality. The key security-related changes include:
Overall, the changes in this pull request appear to be focused on improving the security and reliability of the Brakeman tool, which is a crucial component for securing Ruby on Rails applications. As an application security engineer, I would recommend thoroughly reviewing the changes, monitoring the project for any future security updates, and ensuring that the Brakeman tool is properly integrated and utilized in the target application's security practices. Files Changed:
Code AnalysisWe ran
|
@@ -7,7 +7,7 @@ class Rails8Tests < Minitest::Test | |||
def report | |||
@@report ||= | |||
Date.stub :today, Date.parse("2024-05-13") do | |||
BrakemanTester.run_scan "rails8", "Rails 8", run_all_checks: true, use_prism: true | |||
BrakemanTester.run_scan "rails8", "Rails 8", run_all_checks: true, use_prism: false |
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.
is it intentional to disable prism here for rails8?
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.
Yes, it was intentional because Prism is the default now. Switching this to not use Prism was an easy way to make sure there's a test for the non-default case.
Fall back to RubyParser if Prism is unavailable or fails