Merge pull request #967 from fluxcd/ci/tweak-if-cond

Fix detection of PRs from forks
pull/966/head
Hidde Beydals 4 years ago committed by GitHub
commit bb9eca7232
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

@ -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

Loading…
Cancel
Save