Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Creates a tar archive locally from the git repository and uploads it to the remote server.
Add the library to your Gemfile
:
group :development do
gem 'capistrano-git-copy', require: false
end
And require it in your Capfile
:
require 'capistrano/git_copy'
install_plugin Capistrano::GitCopy::SCM
By default, it includes all submodules into the deployment package. However, if they are not needed in a particular deployment, you can disable them with a configuration option:
set :with_submodules, false
Besides using export-ignore
in .gitattributes
it's possible exclude files and directories by
adding them to git_excludes
:
append :git_excludes, 'config/database.yml.example', 'test', 'rspec'
git-archive-all does not support .gitattributes yet - please set with_submodules to false to make e.g. export-ignore work
It is also possible to deploy only a subdirectory to the remote server:
set :upload_path, 'dist'
This makes it possible to compile or build something locally and only upload the result
namespace :deploy do
before :'git_copy:create_release', :'deploy:build_app'
task :build_app do
run_locally do
within(fetch(:git_copy_plugin).repo_cache_path) do
execute :npm, :install
execute :npm, :run, :'build-dist'
end
end
end
end
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that capistrano-git-copy 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 supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.