From 8cb5e988049f0692d4510e118492e9adda9a5f49 Mon Sep 17 00:00:00 2001 From: Zachary Rice Date: Fri, 27 Sep 2024 11:55:04 -0500 Subject: [PATCH] disable secret scans for community PRs (#3343) * disable secret scans for community PRs * check if fork too --- .github/workflows/secrets.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/secrets.yml b/.github/workflows/secrets.yml index eb2b60408..0b0614a99 100644 --- a/.github/workflows/secrets.yml +++ b/.github/workflows/secrets.yml @@ -11,7 +11,7 @@ on: jobs: test: - if: github.repository == 'trufflesecurity/trufflehog' + if: ${{ github.repository == 'trufflesecurity/trufflehog' && !github.event.pull_request.head.repo.fork }} runs-on: ubuntu-latest steps: - name: Checkout code