Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pre-receive-hooks/block_confidentials.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ regex_list=(
# '([^A-Za-z0-9/+=])?([A-Za-z0-9/+=]{40})([^A-Za-z0-9/+=])?'
# block confidential content
'CONFIDENTIAL'
# Block passwords by keyword "Password", allow password startign with "$,{ or ("
'(password|PASSWORD|Password)(\s?)[=:][^${(][A-Za-z0-9]'
)

# Concatenate regex_list
Expand Down