diff --git a/api/bash/repo-sizer.sh b/api/bash/repo-sizer.sh index b6472f39e..49753a5db 100644 --- a/api/bash/repo-sizer.sh +++ b/api/bash/repo-sizer.sh @@ -16,7 +16,7 @@ # - ./script.sh # # Script will scan that directory for size and -# files with extensions that could be ommitted +# files with extensions that could be omitted # ######## @@ -98,7 +98,7 @@ GetRepoSize() # Grab the current size of the repository on disk SIZE=($(du -sh $DIR_TO_SCAN)) - # Print the size thats cleaned up + # Print the size that's cleaned up echo "Total size of repository on disk:[$SIZE]" } ################################################################################ diff --git a/pre-receive-hooks/block-outdated-clients.sh b/pre-receive-hooks/block-outdated-clients.sh index 64291a983..77f448f1a 100644 --- a/pre-receive-hooks/block-outdated-clients.sh +++ b/pre-receive-hooks/block-outdated-clients.sh @@ -23,7 +23,7 @@ # $ sh git_hook_outdated_clients.sh # ``` # -# Edit this variables to set the policy for the git version +# Edit these variables to set the policy for the git version # # max_minor_diff: the number of git versions allowed from the latest one. # block_list: a list containing specific versions that are blocked by policy @@ -31,7 +31,7 @@ max_minor_diff=3 block_list=( ) -# Edit this variables to get the right version to compare as latest +# Edit these variables to get the right version to compare as latest # latest_version: add the latest version to check or leave it empty to let the script get it dynamically # authentication: provide a PAT on the environment if you want to execute the request to get the version without triggering the rate limit. # If you don't provide the latest version we strongly recommend to add a GH_TOKEN to the environment. It requires jq as dependency @@ -45,7 +45,7 @@ function block_version { echo "## Outdated git version $1 ##" echo "#########################################" echo "" - echo "Update the git version to a newest one: https://git-scm.com/downloads" + echo "Update the git version to a newer one: https://git-scm.com/downloads" exit 1; } diff --git a/pre-receive-hooks/block_branch_names_not_starting_with_userID.sh b/pre-receive-hooks/block_branch_names_not_starting_with_userID.sh index ab89f1614..46ecac71c 100644 --- a/pre-receive-hooks/block_branch_names_not_starting_with_userID.sh +++ b/pre-receive-hooks/block_branch_names_not_starting_with_userID.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # -# Pre-receive hook that will block any new commits that their names do not being with the userID +# Pre-receive hook that will block any new commits that their names do not begin with the userID # # More details on pre-receive hooks and how to apply them can be found on # https://help.github.com/enterprise/admin/guides/developer-workflow/managing-pre-receive-hooks-on-the-github-enterprise-appliance/ diff --git a/pre-receive-hooks/block_confidentials.sh b/pre-receive-hooks/block_confidentials.sh index 9beceb631..7c14e73d1 100755 --- a/pre-receive-hooks/block_confidentials.sh +++ b/pre-receive-hooks/block_confidentials.sh @@ -22,7 +22,7 @@ regex_list=( '(\-){5}BEGIN\s?(RSA|OPENSSH|DSA|EC|PGP)?\s?PRIVATE KEY\s?(BLOCK)?(\-){5}.*' # block AWS API Keys 'AKIA[0-9A-Z]{16}' - # block AWS Secret Access Key (TODO: adjust to not find validd Git SHA1s; false positives) + # block AWS Secret Access Key (TODO: adjust to not find valid Git SHA1s; false positives) # '([^A-Za-z0-9/+=])?([A-Za-z0-9/+=]{40})([^A-Za-z0-9/+=])?' # block confidential content 'CONFIDENTIAL' diff --git a/pre-receive-hooks/block_unsigned_commits.sh b/pre-receive-hooks/block_unsigned_commits.sh index 4b2e953a3..63a0b470d 100755 --- a/pre-receive-hooks/block_unsigned_commits.sh +++ b/pre-receive-hooks/block_unsigned_commits.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # -# Pre-receive hook that will block any unsigned commits and tagswhen pushed to a GitHub Enterprise repository +# Pre-receive hook that will block any unsigned commits and tags when pushed to a GitHub Enterprise repository # The script will not actually validate the GPG signature (would need access to PKI) # but just checks whether all new commits and tags have been signed #