From f8f3ff10fa0acb4579762dc2745ef66c123d204a Mon Sep 17 00:00:00 2001 From: John Bampton Date: Thu, 11 Jan 2024 03:17:23 +1000 Subject: [PATCH] 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." --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d344920fd..4f8b9c48e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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