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