Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Add pipelines of small ruby classes to your ruby project.
Add this line to your application's Gemfile:
gem 'ruby_pipeline'
And then execute:
bundle
Or install it yourself as:
gem install ruby_pipeline
class MyPipeline < RubyPipeline::BasePipeline
private
def default_steps
[
PipelineSteps::Step1,
PipelineSteps::Step2
]
end
end
class PipelineSteps::Step1 < RubyPipeline::BaseStep
def process(data)
# do something with data, what you return will be passed to the next step
data
end
end
class PipelineSteps::Step1 < RubyPipeline::BaseStep
def process(data)
# returning nil will terminate the pipeline
nil
end
end
MyPipeline.new.process(data)
You can configure a success callback to be called after each step is processed:
RubyPipeline.configure do |config|
config.success_callback = ->(step) { my_monitoring_service.notify(step) }
config.failure_callback = ->(step) { puts "Failure in step #{step}" }
config.time_callback = lambda do |step, &block|
my_timing_service.time(step) do
block.call # Important to call the block, otherwise the pipeline will not continue
end
end
end
We're using RSpec for testing. Run the test suite with rake spec. Tests for pull requests are appreciated but not required. (If you don't include a test, we'll write one before merging.)
`ruby-pipeine`` is free software released under the MIT License. See LICENSE for details.
This gem uses Github Packages Registry to store gems, and all builds get pushed to it.
lib/ruby_pipeline/version.rb
with the new version git tag 'v0.1.0' # replace with your version
git push origin 'v0.1.0'
This will automatically trigger the release workflow of GHA, after which you will be able to install a fresh version of a gem into your system.
FAQs
Unknown package
We found that ruby_pipeline 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.