Introduce gitleaks to the codebase

- `bin/setup` installs gitleaks
- add `gitleaks dir` command to CI
- configure gitleaks to ignore tmp, log, and encrypted files
- tag existing false positives with `gitleaks:allow`
- add historical false positives to the ignore list
This commit is contained in:
Mike Dalessio
2025-11-26 15:46:47 -05:00
parent 1534485477
commit 7f46063c25
8 changed files with 38 additions and 5 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ class Webhook::DeliveryTest < ActiveSupport::TestCase
webhook = Webhook.create!(
board: boards(:writebook),
name: "Slack",
url: "https://hooks.slack.com/services/T12345678/B12345678/abcdefghijklmnopqrstuvwx"
url: "https://hooks.slack.com/services/T12345678/B12345678/abcdefghijklmnopqrstuvwx" # gitleaks:allow
)
event = events(:layout_commented)
delivery = Webhook::Delivery.create!(webhook: webhook, event: event)