-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revert: "feat: Add gitleaks to husky precommit" (#582)
Reverts #578 because it's causing issues when importing in docs https://yarnpkg.com/advanced/lifecycle-scripts#postinstall > Postinstall scripts should be avoided at all cost, as they make installs slower and riskier. Many users will refuse to install dependencies that have postinstall scripts. Additionally, since the output isn't shown out of the box, using them to print a message to the user will not work as you expect.
- Loading branch information
1 parent
359bd01
commit 2575aa5
Showing
5 changed files
with
6 additions
and
106 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@hyperlane-xyz/registry': patch | ||
--- | ||
|
||
Revert husky. |
This file was deleted.
Oops, something went wrong.
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,16 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
# If not in GitHub Actions, check for potential secrets in staged files | ||
if [ "$GITHUB_ACTIONS" != "true" ]; then | ||
echo "🔍 Checking for potential secrets in staged files..." | ||
if git diff --cached --name-only | xargs gitleaks protect --staged --verbose --redact --config .gitleaks.toml; then | ||
echo "✅ No secrets detected" | ||
else | ||
echo "❌ Potential secrets detected in your changes!" | ||
echo "Please remove any secrets, credentials, or sensitive information before committing." | ||
exit 1 | ||
fi | ||
fi | ||
|
||
yarn lint-staged |
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 |
---|---|---|
|
@@ -70,8 +70,7 @@ | |
"test:unit": "yarn build && mocha --config .mocharc.json './test/unit/*.test.ts' --exit", | ||
"test:health": "yarn build && mocha --config .mocharc.json './test/health/*.test.ts' --exit --parallel", | ||
"version:prepare": "yarn changeset version && yarn install --no-immutable", | ||
"version:check": "yarn changeset status", | ||
"postinstall": "husky install" | ||
"version:check": "yarn changeset status" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |