From 00a134e23fb1ab7755175cc0ee86a599784b2803 Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Tue, 23 Feb 2021 10:09:24 +0100 Subject: [PATCH] Fix detection of PRs from forks Signed-off-by: Hidde Beydals --- .github/workflows/bootstrap.yaml | 2 +- .github/workflows/scan.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bootstrap.yaml b/.github/workflows/bootstrap.yaml index 90670e5b..15c25d40 100644 --- a/.github/workflows/bootstrap.yaml +++ b/.github/workflows/bootstrap.yaml @@ -9,7 +9,7 @@ on: jobs: github: runs-on: ubuntu-latest - if: ${{ github.repository_owner == 'fluxcd' }} + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository steps: - name: Checkout uses: actions/checkout@v2 diff --git a/.github/workflows/scan.yaml b/.github/workflows/scan.yaml index 57cbeb9f..a949ab30 100644 --- a/.github/workflows/scan.yaml +++ b/.github/workflows/scan.yaml @@ -24,7 +24,7 @@ jobs: snyk: name: Snyk runs-on: ubuntu-latest - if: ${{ github.repository_owner == 'fluxcd' }} + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository steps: - uses: actions/checkout@v2 - name: Run Snyk to check for vulnerabilities