diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 005a85a1..34810deb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,4 +18,11 @@ repos: # when "--baseline" without "--use-all-plugins", pre-commit scan with just plugins in baseline file # when "--baseline" with "--use-all-plugins", pre-commit scan with all available plugins # add "--fail-on-unaudited" to fail pre-commit for unaudited potential secrets - args: [--baseline, .secrets.baseline, --use-all-plugins] \ No newline at end of file + args: [--baseline, .secrets.baseline, --use-all-plugins] + - repo: local + hooks: + - id: no-gitignore-commit + name: Prevent .gitignore from getting committed + entry: ".gitignore file commit detected" + language: fail + files: ^.gitignore$ diff --git a/create-new-release.sh b/create-new-release.sh index c4d3ca7d..97e98f0a 100755 --- a/create-new-release.sh +++ b/create-new-release.sh @@ -68,3 +68,6 @@ sed -i'.bak' -e "s/ga\/\*\/\*\/resources\/\*/#ga\/\*\/\*\/resources\/\*/g" .giti rm ./.gitignore.bak echo "Done performing file updates."; +echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" +echo "!!!!!! Please do NOT commit and push the changed .gitignore file, which is only a temporary LOCAL change. !!!!!!" +echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"