secret-shield
secret-shield copied to clipboard
SourceTree issue
What repository are you running secret-shield on?
https://github.com/mapbox/1tap-android
What version of secret-shield are you running?
{ "version": "1.0.2", "node": "v12.22.1", "os_platform": "darwin", "os_release": "20.6.0", "installed_dir": "/usr/local/lib/node_modules/@mapbox/secret-shield/bin" }
How did you invoke secret-shield?
with AndroidStudio
terminal works as expected
but with SourceTree
I get error
How is secret-shield not working as expected?
SourceTree
output:
/Users/nikitos/.git/hooks/pre-commit/pre-commit: line 2: secret-shield: command not found
➜ ~ cat .git/hooks/pre-commit/pre-commit
#!/bin/sh
secret-shield --pre-commit -C verydeep --enable "Mapbox Public Key" --disable "High-entropy base64 string" "Short high-entropy string" "Long high-entropy string"
@korshaknn , did you install secret-shield as per the docs? npm install -g @mapbox/secret-shield