aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e9c332cf9..0b4119e33 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -15,6 +15,9 @@ jobs:
uses: actions/checkout@v2
with:
path: gopath/src/github.com/google/syzkaller
+ # This is needed for tools/check-commits.sh
+ ref: ${{ github.event.pull_request.head.sha }}
+ fetch-depth: 100
# Caches everything in .cache dir, in partiuclar we want to cache go-build and golangci-lint stuff.
# For reference see:
# https://help.github.com/en/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows#using-the-cache-action
@@ -25,6 +28,8 @@ jobs:
key: cache
# Run make presubmit_smoke.
- name: run
+ env:
+ GITHUB_PR_BASE_SHA: ${{ github.event.pull_request.base.sha }}
run: gopath/src/github.com/google/syzkaller/.github/workflows/run.sh syz-env make presubmit_smoke
# Upload coverage report to codecov.io. For reference see:
# https://github.com/codecov/codecov-action/blob/master/README.md