pre-commit: add hook detect-aws-credentials

https://github.com/pre-commit/pre-commit-hooks#detect-aws-credentials

Another check or test we can have.

"--allow-missing-credentials - Allow hook to pass when no credentials are detected."
This commit is contained in:
John Bampton
2024-01-11 03:17:23 +10:00
parent c2f148e15d
commit f8f3ff10fa
+2
View File
@@ -20,6 +20,8 @@ repos:
- id: check-shebang-scripts-are-executable
- id: check-vcs-permalinks
- id: check-yaml
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: detect-private-key
- id: end-of-file-fixer
- id: file-contents-sorter