-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch master into kate/dtra-269/ts_migration_trader_package_2
- Loading branch information
Showing
1,088 changed files
with
37,454 additions
and
18,659 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged --allow-empty | ||
npx lint-staged --allow-empty | ||
|
||
bash ./.husky/secret-scanner.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
#checking absolute paths | ||
if command -v trufflehog &> /dev/null; then | ||
trufflehog_path="trufflehog" | ||
elif [[ -x /usr/local/bin/trufflehog ]]; then | ||
trufflehog_path="/usr/local/bin/trufflehog" | ||
elif [[ -x /opt/homebrew/bin/trufflehog ]]; then | ||
trufflehog_path="/opt/homebrew/bin/trufflehog" | ||
else | ||
echo "Trufflehog is not setup. Please connect with Product Security Team" | ||
exit 1 | ||
fi | ||
|
||
# Use `filesysytem` if the git repo does not have any commits i.e its a new git repo. | ||
if git log -1 > /dev/null 2>&1; then | ||
$trufflehog_path git file://. --no-update --since-commit HEAD --fail > /tmp/trufflehog_output_$(whoami) 2>&1 | ||
trufflehog_exit_code=$? | ||
else | ||
$trufflehog_path filesystem . --no-update --fail > /tmp/trufflehog_output_$(whoami) 2>&1 | ||
trufflehog_exit_code=$? | ||
fi | ||
|
||
# Only display results to stdout if trufflehog found something. | ||
if [ $trufflehog_exit_code -eq 183 ]; then | ||
cat /tmp/trufflehog_output_$(whoami) | ||
echo "TruffleHog found secrets. Aborting commit. use --no-verify to bypass it" | ||
exit $trufflehog_exit_code | ||
fi |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.