secret-shield
secret-shield copied to clipboard
ERROR! You must have secret-shield installed and configured globally...
What repository are you running secret-shield on?
https://github.com/mapbox/subdomain-docs/
What version of secret-shield are you running?
{
"version": "1.0.2",
"node": "v12.20.0",
"os_platform": "darwin",
"os_release": "20.4.0",
"installed_dir": "/Users/domlet/.nvm/versions/node/v12.20.0/lib/node_modules/@mapbox/secret-shield/bin"
}
How did you invoke secret-shield?
I followed these steps:
➜ subdomain-docs git:(db-redirectstyles) ✗ npm install -g @mapbox/secret-shield
npm WARN deprecated [email protected]: This module is now under the @mapbox namespace: install @mapbox/decrypt-kms-env instead
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated [email protected]: Backported compatibility to node > 6
/Users/domlet/.nvm/versions/node/v12.20.0/bin/secret-shield -> /Users/domlet/.nvm/versions/node/v12.20.0/lib/node_modules/@mapbox/secret-shield/bin/secret-shield.js
+ @mapbox/[email protected]
updated 1 package in 6.161s
➜ subdomain-docs git:(db-redirectstyles) ✗ secret-shield --add-hooks global
Successfully added global hooks!
I also followed the instructions at:
- https://github.com/mapbox/secret-shield/blob/main/docs/commonIssues.md#it-says-you-must-have-secret-shield-installed-and-configured-globally-but-i-do-have-it-installed
...but I still cannot commit to this repo:
➜ subdomain-docs git:(db-redirectstyles) ✗ git commit -m "update redirects for GSG edition"
husky > pre-commit (node v12.20.0)
/bin/sh: Studio: command not found
ERROR! You must have secret-shield installed and configured globally to commit to this repository. To set up secret-shield, follow these instructions: https://github.com/mapbox/secret-shield/blob/master/docs/enabledBadge.md
husky > pre-commit hook failed (add --no-verify to bypass)
How is secret-shield not working as expected?
I cannot commit. When I try:
➜ subdomain-docs git:(db-redirectstyles) ✗ git commit -m "update redirects for GSG edition"
I get this error:
husky > pre-commit (node v12.20.0)
/bin/sh: Studio: command not found
ERROR! You must have secret-shield installed and configured globally to commit to this repository. To set up secret-shield, follow these instructions: https://github.com/mapbox/secret-shield/blob/master/docs/enabledBadge.md
husky > pre-commit hook failed (add --no-verify to bypass)
I am having the same issue, and wondering if there was a way past this @domlet ?
Hi @sofita I think I may have used the add --no-verify to bypass
command to bypass the error.