Skip to content
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

Security Fixes #35

Merged
merged 1 commit into from
Jan 4, 2024
Merged

Security Fixes #35

merged 1 commit into from
Jan 4, 2024

Conversation

Stratus3D
Copy link
Contributor

Card

  • Remove test:examples Rake task as sample apps have been removed
  • Remove reference to old Rake task in script/test
  • Remove rails and rails-api as dependencies

@@ -5,8 +5,6 @@ gemspec
group :development, :test do
gem 'pry-byebug'
gem 'rack-test'
gem 'rails'
gem 'rails-api'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't see these referenced anywhere so I removed them. It appears removing these two gems takes care of most of the reported vulnerabilities (they were never real vulnerabilities that could be exploited outside of the dev env).

@@ -15,12 +15,4 @@ RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = 'spec/ops/**/*_spec.rb'
end

desc 'Executes the example tests'
task 'test:examples' do
%w(rails_app_sample sinatra).each do |ex|
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These sample apps had already been removed so this Rake task didn't work anymore.

$stderr.puts e.message
$stderr.puts 'Run `bundle install` to install missing gems'
$stderr.warn e.message
$stderr.warn 'Run `bundle install` to install missing gems'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Rubocop yelled at me about these.

# pass arguments to test call. This is useful for calling a single test.
bundle exec rspec "$1"
else
bundle exec rake test:examples && bundle exec rspec
Copy link
Contributor Author

Choose a reason for hiding this comment

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

rake test:examples is gone.

bundle exec rubocop -D $auto_correct

if [[ -n "$1" && $1 != "-a" ]]; then
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Shellcheck complained about these.

@Stratus3D Stratus3D marked this pull request as ready for review January 3, 2024 21:25
Copy link
Contributor

@pasha pasha left a comment

Choose a reason for hiding this comment

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

you might want to bump a version at the same time

[Card](https://rentpath.atlassian.net/browse/SRV-5995)

* Remove test:examples Rake task as sample apps have been removed
* Remove reference to old Rake task in script/test
* Remove rails and rails-api as dependencies
* Bump version
@Stratus3D Stratus3D merged commit eb50c66 into master Jan 4, 2024
5 checks passed
@Stratus3D Stratus3D deleted the tb/SRV-5995-security-fixes branch January 4, 2024 13:32
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.

4 participants