Skip to content

Commit

Permalink
Add make gitleaks
Browse files Browse the repository at this point in the history
`--source` seems to affect both the config file that would otherwise need to be specified with `--config` (see the order of precedence 3. in `gitleaks help detect`), and the `.gitleaksignore` file which would need to be specified with `--gitleaks-ignore-path string` but only `.` is mentioned as the default.
  • Loading branch information
spaze committed Jan 20, 2024
1 parent 6766d6e commit 0f3cbf1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion site/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: test audit cs-fix check-file-patterns check-makefile lint-php lint-latte lint-neon lint-xml lint-xml-auto-install phpcs phpstan phpstan-latte-templates phpstan-vendor psalm tester tester-include-skipped
.PHONY: test audit cs-fix check-file-patterns check-makefile lint-php lint-latte lint-neon lint-xml lint-xml-auto-install phpcs phpstan phpstan-latte-templates phpstan-vendor psalm tester tester-include-skipped gitleaks

test: audit check-file-patterns check-makefile lint-php lint-latte lint-neon lint-xml phpcs phpstan tester psalm phpstan-vendor

Expand Down Expand Up @@ -50,3 +50,6 @@ tester:
tester-include-skipped:
TEST_CASE_RUNNER_INCLUDE_SKIPPED=1 \
$(MAKE) tester

gitleaks:
gitleaks detect --verbose --source $(realpath ..)

0 comments on commit 0f3cbf1

Please sign in to comment.