From 33c816d8769c4d49f1480572b74db89c1cada7bc Mon Sep 17 00:00:00 2001 From: danielfromearth Date: Thu, 14 Nov 2024 16:05:23 -0500 Subject: [PATCH 1/2] add gitleaks hook to pre-commit --- .pre-commit-config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e13c4a7..ffe6baa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,6 +8,11 @@ default_language_version: python: python3.9 repos: + - repo: https://github.com/gitleaks/gitleaks + rev: v8.21.2 + hooks: + - id: gitleaks + - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: From 439266a4ee5b07d0972c0bf174354daa7c29a861 Mon Sep 17 00:00:00 2001 From: danielfromearth Date: Thu, 14 Nov 2024 16:07:20 -0500 Subject: [PATCH 2/2] update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bca7830..3f8abf3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Add pre-commit autoupdating ([#cde1ae4](https://github.com/nasa/ncompare/pull/260/commits/cde1ae4d7ae8b1d9cf07d4af012e8f97b010238d)) ([**@danielfromearth**](https://github.com/danielfromearth)) +- Add gitleaks to pre-commit ([#261](https://github.com/nasa/ncompare/pull/261)) ([**@danielfromearth**](https://github.com/danielfromearth)) ### Removed