From b349f39b6b76919a1888dbe6ca5ce56dcc954159 Mon Sep 17 00:00:00 2001 From: "Jorge L. Fatta" Date: Fri, 9 Apr 2021 16:38:03 -0300 Subject: [PATCH] fix: skip snyk on forks (#242) * fix: skip snyk on forks * fix: run Go (build check) on PRs too --- .github/workflows/go.yml | 4 +++- .github/workflows/snyk.yml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) 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