
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
rubocop-gitlab-security
Advanced tools
This is an early attempt at creating Rubocop rules, similar to Rubocop-RSpec, for blocking dangerous code. This code is based heavily upon the Rubocop-RSpec code released under the MIT License.
Just install the rubocop-gitlab-security
gem
gem install rubocop-gitlab-security
or if you use bundler put this in your Gemfile
gem 'rubocop-gitlab-security'
You need to tell RuboCop to load the Gitlab-Security extension. There are three ways to do this:
Put this into your .rubocop.yml
.
require: rubocop-gitlab-security
Now you can run rubocop
and it will automatically load the RuboCop Gitlab-Security
cops together with the standard cops.
rubocop --require rubocop-gitlab-security
RuboCop::RakeTask.new do |task|
task.requires << 'rubocop-gitlab-security'
end
By default, rubocop-gitlab-security
inspects all files. You can override this setting in your config file by specifying one or more patterns:
# Inspect all files
AllCops:
GitlabSecurity:
Patterns:
- '.+'
# Inspect only controller files.
AllCops:
GitlabSecurity:
Patterns:
- app/controllers/**/*.rb
All cops are located under
lib/rubocop/cop/gitlab-security
, and contain
examples/documentation.
In your .rubocop.yml
, you may treat the Gitlab-Security cops just like any other
cop. For example:
GitlabSecurity/PublicSend:
Exclude:
- 'spec/**/*'
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)rubocop-gitlab-security
is MIT licensed. See the accompanying file for
the full text.
FAQs
Unknown package
We found that rubocop-gitlab-security demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.