From c2257248fed04034bd40b498f6496b3aa58ccfc5 Mon Sep 17 00:00:00 2001 From: Mark Collao <106274486+mcollao-hc@users.noreply.github.com> Date: Mon, 9 Sep 2024 09:49:07 -0500 Subject: [PATCH] update scan workflow conditions --- .github/workflows/security-scan.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/security-scan.yml b/.github/workflows/security-scan.yml index 26948df755..eae85bd806 100644 --- a/.github/workflows/security-scan.yml +++ b/.github/workflows/security-scan.yml @@ -12,7 +12,10 @@ on: jobs: scan: runs-on: ${{ fromJSON(vars.RUNNER_LARGE) }} - if: ${{ github.actor != 'dependabot[bot]' || github.actor != 'hc-github-team-secure-boundary' }} + if: | + ! github.event.pull_request.head.repo.fork && + github.actor != 'dependabot[bot]' && + github.actor != 'hc-github-team-secure-boundary' steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7