openvibers/openvibe.games .gitleaks.toml

.gitleaks.toml

main 963 B · 18 lines · ini

1# gitleaks configuration, used by the shared security workflow
2# (OpenVibers/OpenVibe.Shared/.github/workflows/security.yml). The default rules stay on; every
3# allowlist below is one proven false positive, matched on path AND value so nothing else is hidden.
4[extend]
5useDefault = true
6
7[[allowlists]]
8description = "Made-up player/session tokens in unit tests (sqlite/sqliteStore.test.ts: the same token in the first commit, before the PostgreSQL move)"
9condition = "AND"
10paths = ['''^packages/(persistence/src/pg/pgStore|persistence/src/sqlite/sqliteStore|protocol/src/codec)\.test\.ts$''']
11regexes = ['''^(tok_12345678|abcdefgh12345678)$''']
12
13[[allowlists]]
14description = "A made-up canonical subject id (usr_ + a ULID-shaped alphabet run) as a test default and as the identity field hello must ignore"
15condition = "AND"
16paths = ['''^(apps/server/src/game/flusher|packages/protocol/src/codec)\.test\.ts$''']
17regexes = ['''^usr_01JABCDEFGHJKMNPQRSTVWXYZ0$''']
18