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.

Improve brakeman reporting

Damian Legawiec2ac492fd41b2
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 5ff1d99be0..dc0ca34da9 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -154,6 +154,9 @@ jobs:
- checkout
- bundle_install
- run: bin/brakeman.sh
+ - run:
+ name: Move brakeman reports to artifacts directory
+ command: mv brakeman-*.html /tmp/test-artifacts/
- store_artifacts:
path: /tmp/test-artifacts
destination: test-artifacts
diff --git a/.gitignore b/.gitignore
index 11cd6dfe1d..b9bd6a316f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -55,3 +55,4 @@ vendor/bundle
*/vendor/bundle
.ignore
TODO
+brakeman-*.html
diff --git a/bin/brakeman.sh b/bin/brakeman.sh
index 82169afa63..a075c6bb07 100755
--- a/bin/brakeman.sh
+++ b/bin/brakeman.sh
@@ -2,8 +2,8 @@
set -eux
-bundle exec brakeman -p api/ --exit-on-warn --exit-on-error
-bundle exec brakeman -p core/ --exit-on-warn --exit-on-error
-bundle exec brakeman -p storefront/ --exit-on-warn --exit-on-error
-bundle exec brakeman -p admin/ --exit-on-warn --exit-on-error
-bundle exec brakeman -p emails/ --exit-on-warn --exit-on-error
\ No newline at end of file
+bundle exec brakeman -p api/ --exit-on-warn --exit-on-error -o brakeman-api.html
+bundle exec brakeman -p core/ --exit-on-warn --exit-on-error -o brakeman-core.html
+bundle exec brakeman -p storefront/ --exit-on-warn --exit-on-error -o brakeman-storefront.html
+bundle exec brakeman -p admin/ --exit-on-warn --exit-on-error -o brakeman-admin.html
+bundle exec brakeman -p emails/ --exit-on-warn --exit-on-error -o brakeman-emails.html
\ No newline at end of file