Skip to content

Find, verify, and analyze leaked credentials

ci: don't run detector tests on forks (#2234)

Richard Gomez2928e2ee763e
diff --git a/.github/workflows/detector-tests.yml b/.github/workflows/detector-tests.yml
index 6af67f23b..b6ab79f4d 100644
--- a/.github/workflows/detector-tests.yml
+++ b/.github/workflows/detector-tests.yml
@@ -7,6 +7,7 @@ on:
jobs:
test-detectors:
+ if: ${{ github.repository == 'trufflesecurity/trufflehog' }}
runs-on: ubuntu-latest
permissions:
actions: "read"