diff --git a/.gitleaksignore b/.gitleaksignore deleted file mode 100644 index 056cf69d2..000000000 --- a/.gitleaksignore +++ /dev/null @@ -1,45 +0,0 @@ -# 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/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..168ff1424 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,6 @@ +repos: + - repo: https://github.com/gitleaks/gitleaks + rev: v8.24.2 + hooks: + - id: gitleaks + diff --git a/contrib/Makefile b/contrib/Makefile index 79145668f..0a61eedc3 100644 --- a/contrib/Makefile +++ b/contrib/Makefile @@ -1,6 +1,8 @@ APP_PROJECT_NAMES=Org Blogs Api SLNDIR=.. +MAIN_SECRET="4QqkjsfS34qlmskjfd5FD923c65sdf-654" + include $(SLNDIR)/.env include .env