From b0fab16ad4b5cc42c38ee4e2ee362aa3c47dea24 Mon Sep 17 00:00:00 2001 From: Richard Gomez <32133502+rgmz@users.noreply.github.com> Date: Thu, 14 Dec 2023 19:48:48 -0500 Subject: [PATCH] chore: don't run test workflow in forks (#2221) --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8e6bd17b4..c9e9bd431 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ on: jobs: test: - if: ${{ ! github.event.pull_request.head.repo.fork }} + if: ${{ github.repository == 'trufflesecurity/trufflehog' && !github.event.pull_request.head.repo.fork }} runs-on: ubuntu-latest permissions: actions: "read"