
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
=Pallet
See COPYRIGHT for distribution terms.
==Description
A Rakefile-based tool to easily build different package types (such as .deb, .gem) from the same source. Currently builds Debian packages and Ruby Gems, but is trivially extensible to provide support for other packaging formats (.tar.gz, .rpm, etc.).
==Usage
Include the pallet library in a new or existing Rakefile for your project. Start by including the pallet library in your Rakefile and defining project information that will be used in both the gem and deb rake packaging task options:
require 'pallet'
Pallet.new('projectname', "0.0.1") do |p| p.author = 'Your Name' p.email = 'your@email.com' p.summary = 'Summary of your project' end
Within the pallet block you can specify options for the gem and deb rake packaging tasks:
... p.packages << Pallet::Gem.new(p) do |gem| gem.depends = ['rake'] gem.requirements = ['fakeroot', 'dpkg-dev'] gem.files.include FileList['share/**/*'] end
p.packages << Pallet::Deb.new(p) do |deb|
deb.architecture = 'all'
deb.depends = ['rake', 'fakeroot', 'dpkg-dev']
deb.files = [InstallSpec['lib', '/usr/lib/ruby/1.8'],
InstallSpec['data', '/usr/share'],
InstallSpec['docs', '/usr/share/docs'],]
deb.commands.document = 'rake doc'
end
...
You should follow the installation policies of your distro when you package a .deb for public use.
==Hacking
Please feel free to contribute code to improve Pallet! Some areas that need attention:
Contact Stephen Touset <stephen@ nospam @ touset.org> with diffs or inquiries.
FAQs
Unknown package
We found that pallet 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
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.