From f7d5b21d66e608b6c668a80f7338de8ebb83da9c Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Mon, 7 Sep 2026 12:27:47 +0100 Subject: [PATCH 1/2] cleanup --- .pre-commit-config.yaml | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index 168ff1424..000000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -1,6 +0,0 @@ -repos: - - repo: https://github.com/gitleaks/gitleaks - rev: v8.24.2 - hooks: - - id: gitleaks - From bb4792d8ae8cc39481d2ec79503e2e604a88da40 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Mon, 7 Sep 2026 12:56:48 +0100 Subject: [PATCH 2/2] Gitleaks integration --- .gitleaksignore | 45 +++++++++++++++++++++++++++++++++++++++++++++ contrib/Makefile | 2 -- 2 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 .gitleaksignore diff --git a/.gitleaksignore b/.gitleaksignore new file mode 100644 index 000000000..056cf69d2 --- /dev/null +++ b/.gitleaksignore @@ -0,0 +1,45 @@ +# Exclure uniquement les dossiers de sortie de compilation +bin/ +obj/ +src/*/bin/ +src/*/obj/ +test/*/bin/ +test/*/obj/ + +# Toolchain front (Node / esbuild) +node_modules/ +build/ +package-lock.json + +# Exclure les caches lourds +.git/ +.vs/ + +.env + +.*.env + +*.csproj.lscache +data/ +appsettings.*.json +appsettings-*.*.json + +# Exception: the Testing-environment override for Yavsc.Org is a tracked +# configuration source, not a secrets file. TestWebApplicationFactory +# (Yavsc.Org.Tests) flips ASPNETCORE_ENVIRONMENT to "Testing" so +# AddConfiguration("org") in Program.Main loads this file as the +# last in the chain (it is optional). It overrides the connection +# string and SMTP section for the in-memory test host and contains +# no production secrets. +!src/Yavsc.Org/appsettings-org.Testing.json + +generated/ +*.tmp +tmp/ +DataDir/ + +*.tests.trx +*.tests.html + +*.log + diff --git a/contrib/Makefile b/contrib/Makefile index 0a61eedc3..79145668f 100644 --- a/contrib/Makefile +++ b/contrib/Makefile @@ -1,8 +1,6 @@ APP_PROJECT_NAMES=Org Blogs Api SLNDIR=.. -MAIN_SECRET="4QqkjsfS34qlmskjfd5FD923c65sdf-654" - include $(SLNDIR)/.env include .env