Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Added `bundler-audit`

Damian Legawiec1dbefe8173fe
diff --git a/bin/audit.sh b/bin/audit.sh
new file mode 100755
index 0000000000..1948593ecd
--- /dev/null
+++ b/bin/audit.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -eux
+
+bundle update
+bundler-audit update
+for dir in . api core storefront admin emails; do
+ (cd "$dir" && bundle update && bundler-audit check)
+done
diff --git a/bin/brakeman.sh b/bin/brakeman.sh
index 8ab286fa22..82169afa63 100755
--- a/bin/brakeman.sh
+++ b/bin/brakeman.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-set -euxo pipefail
+set -eux
bundle exec brakeman -p api/ --exit-on-warn --exit-on-error
bundle exec brakeman -p core/ --exit-on-warn --exit-on-error
diff --git a/common_spree_dependencies.rb b/common_spree_dependencies.rb
index 164b152bfa..72467010c1 100644
--- a/common_spree_dependencies.rb
+++ b/common_spree_dependencies.rb
@@ -44,6 +44,7 @@ end
group :test, :development do
gem 'awesome_print'
gem 'brakeman'
+ gem 'bundler-audit'
gem 'gem-release'
gem 'i18n-tasks'
gem 'rubocop', '~> 1.0', require: false