Skip to content

Commit

Permalink
feat(tenant-management): integrate auth0
Browse files Browse the repository at this point in the history
integrate auth0

47
  • Loading branch information
Tyagi-Sunny committed Oct 17, 2024
1 parent 2984ca5 commit 2f7e4b0
Show file tree
Hide file tree
Showing 33 changed files with 1,079 additions and 262 deletions.
20 changes: 10 additions & 10 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
npx --no-install commitlint --edit $1

# Section for git-secrets
if ! command -v git-secrets &> /dev/null 2>&1
then
echo "git-secrets is not installed. Please run 'brew install git-secrets' or visit https://github.com/awslabs/git-secrets#installing-git-secrets"
exit 1
fi
# if ! command -v git-secrets &> /dev/null 2>&1
# then
# echo "git-secrets is not installed. Please run 'brew install git-secrets' or visit https://github.com/awslabs/git-secrets#installing-git-secrets"
# exit 1
# fi

# Initialise git-secrets configuration
git-secrets --register-aws > /dev/null
# # Initialise git-secrets configuration
# git-secrets --register-aws > /dev/null

echo "Running git-secrets..."
# Scans the commit message.
git-secrets --commit_msg_hook -- "$@"
# echo "Running git-secrets..."
# # Scans the commit message.
# git-secrets --commit_msg_hook -- "$@"
22 changes: 11 additions & 11 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# Section for git-secrets
if ! command -v git-secrets &> /dev/null 2>&1
then
echo "git-secrets is not installed. Please run 'brew install git-secrets' or visit https://github.com/awslabs/git-secrets#installing-git-secrets"
exit 1
fi
# # Section for git-secrets
# if ! command -v git-secrets &> /dev/null 2>&1
# then
# echo "git-secrets is not installed. Please run 'brew install git-secrets' or visit https://github.com/awslabs/git-secrets#installing-git-secrets"
# exit 1
# fi

# Initialise git-secrets configuration
git-secrets --register-aws > /dev/null
# # Initialise git-secrets configuration
# git-secrets --register-aws > /dev/null

echo "Running git-secrets..."
# Scans all files that are about to be committed.
git-secrets --pre_commit_hook -- "$@"
# echo "Running git-secrets..."
# # Scans all files that are about to be committed.
# git-secrets --pre_commit_hook -- "$@"

npm test
20 changes: 10 additions & 10 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
exec < /dev/tty && npx cz --hook || true

# Section for git-secrets
if ! command -v git-secrets &> /dev/null 2>&1
then
echo "git-secrets is not installed. Please run 'brew install git-secrets' or visit https://github.com/awslabs/git-secrets#installing-git-secrets"
exit 1
fi
# if ! command -v git-secrets &> /dev/null 2>&1
# then
# echo "git-secrets is not installed. Please run 'brew install git-secrets' or visit https://github.com/awslabs/git-secrets#installing-git-secrets"
# exit 1
# fi

# Initialise git-secrets configuration
git-secrets --register-aws > /dev/null
# # Initialise git-secrets configuration
# git-secrets --register-aws > /dev/null

echo "Running git-secrets..."
# Determines if merging in a commit will introduce tainted history.
git-secrets --prepare_commit_msg_hook -- "$@"
# echo "Running git-secrets..."
# # Determines if merging in a commit will introduce tainted history.
# git-secrets --prepare_commit_msg_hook -- "$@"
121 changes: 103 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2f7e4b0

Please sign in to comment.