This is an automated email from the ASF dual-hosted git repository.

dahn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/main by this push:
     new c563fda0819 Add two more `pre-commit` hooks (#9077)
c563fda0819 is described below

commit c563fda081952b579272097c99d88bc1178c1e62
Author: John Bampton <[email protected]>
AuthorDate: Tue May 28 15:40:15 2024 +1000

    Add two more `pre-commit` hooks (#9077)
    
    
https://github.com/pre-commit/pre-commit-hooks?tab=readme-ov-file#detect-aws-credentials
    
    
https://github.com/pre-commit/pre-commit-hooks?tab=readme-ov-file#forbid-submodules
---
 .pre-commit-config.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 9004ed9daee..4a5cc3ae716 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -36,6 +36,8 @@ repos:
       - id: check-vcs-permalinks
       #- id: check-yaml
       - id: destroyed-symlinks
+      - id: detect-aws-credentials
+        args: [--allow-missing-credentials]
       - id: detect-private-key
         exclude: >
           (?x)
@@ -53,6 +55,7 @@ repos:
       - id: end-of-file-fixer
         exclude: \.vhd$
       #- id: fix-byte-order-marker
+      - id: forbid-submodules
       - id: mixed-line-ending
         exclude: \.(cs|xml)$
       # - id: trailing-whitespace

Reply via email to