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 2a459d7e..0cde0f17 100755 --- a/create-new-release.sh +++ b/create-new-release.sh @@ -81,3 +81,6 @@ sed -i'.bak' -e "s/releases\/\*\/\*\/resources\/\*/#releases\/\*\/\*\/resources\ 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 "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"