From 4a3f2ef3958119d16eb22e93376bbcf4821b4e85 Mon Sep 17 00:00:00 2001 From: StepSecurity Bot Date: Tue, 8 Aug 2023 16:13:29 +0000 Subject: [PATCH 1/3] =?UTF-8?q?[StepSecurity]=20Apply=20security=20best=20?= =?UTF-8?q?practices=20=E2=80=93=20Update=20`pre-commit`=20configuration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: StepSecurity Bot --- .pre-commit-config.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 26ce0fca22..5eb0d5d59a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,3 +4,24 @@ repos: hooks: - id: black language_version: python3 + - repo: https://github.com/gitleaks/gitleaks + rev: v8.16.3 + hooks: + - id: gitleaks + - repo: https://github.com/jumanjihouse/pre-commit-hooks + rev: 3.0.0 + hooks: + - id: shellcheck + - repo: https://github.com/pocc/pre-commit-hooks + rev: v1.3.5 + hooks: + - id: cpplint + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: end-of-file-fixer + - id: trailing-whitespace + - repo: https://github.com/pylint-dev/pylint + rev: v2.17.2 + hooks: + - id: pylint From 706d892af41881b33b758da2265c0ed8272ab5a9 Mon Sep 17 00:00:00 2001 From: Guido Trensch <19706694+gtrensch@users.noreply.github.com> Date: Tue, 21 Nov 2023 14:53:51 +0100 Subject: [PATCH 2/3] Update .pre-commit-config.yaml Co-authored-by: Dennis Terhorst --- .pre-commit-config.yaml | 38 +++++++++++++++++--------------------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5eb0d5d59a..75ae810293 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,24 +4,20 @@ repos: hooks: - id: black language_version: python3 - - repo: https://github.com/gitleaks/gitleaks - rev: v8.16.3 - hooks: - - id: gitleaks - - repo: https://github.com/jumanjihouse/pre-commit-hooks - rev: 3.0.0 - hooks: - - id: shellcheck - - repo: https://github.com/pocc/pre-commit-hooks - rev: v1.3.5 - hooks: - - id: cpplint - - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 - hooks: - - id: end-of-file-fixer - - id: trailing-whitespace - - repo: https://github.com/pylint-dev/pylint - rev: v2.17.2 - hooks: - - id: pylint + - repo: https://github.com/gitleaks/gitleaks + rev: v8.16.3 + hooks: + - id: gitleaks + - repo: https://github.com/jumanjihouse/pre-commit-hooks + rev: 3.0.0 + hooks: + - id: shellcheck + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: end-of-file-fixer + - id: trailing-whitespace + - repo: https://github.com/pylint-dev/pylint + rev: v2.17.2 + hooks: + - id: pylint From 38863685d96b1bd69545b24383db9fe78e2278b7 Mon Sep 17 00:00:00 2001 From: Dennis Terhorst Date: Tue, 21 Nov 2023 16:27:10 +0100 Subject: [PATCH 3/3] Fix file eol --- .pre-commit-config.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2e53a0e7a6..eb660d1269 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,4 +31,5 @@ repos: - repo: https://github.com/pre-commit/mirrors-clang-format rev: v17.0.4 hooks: - - id: clang-format \ No newline at end of file + - id: clang-format +