Skip to content

Commit

Permalink
fix: skip snyk on forks (#242)
Browse files Browse the repository at this point in the history
* fix: skip snyk on forks

* fix: run Go (build check) on PRs too
  • Loading branch information
jfatta authored Apr 9, 2021
1 parent 581baa9 commit b349f39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Go
on: [push]
on:
pull_request:
push:
jobs:

build:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b349f39

Please sign in to comment.