diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8d45f09a9..eb3cbbb2e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,5 +1,7 @@ name: Go -on: [push] +on: + pull_request: + push: jobs: build: diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml index 5e1a6bbe1..d2df475c5 100644 --- a/.github/workflows/snyk.yml +++ b/.github/workflows/snyk.yml @@ -2,6 +2,8 @@ name: Snyk on: [pull_request] jobs: security: + # skip running this action if the PR is coming from a fork: + if: github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest steps: - uses: actions/checkout@v2