From 43e4d25848328f8c8b2f2ae4b758523c7b089965 Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Mon, 5 Dec 2022 15:59:30 +0100 Subject: [PATCH] chore(ci): properly checkout pull request HEAD instead of merge commit in gh actions. See https://github.com/actions/checkout#checkout-pull-request-head-commit-instead-of-merge-commit. Signed-off-by: Federico Di Pierro --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6166e686..5f08a696 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,7 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} - name: Update base image run: sudo apt update -y @@ -47,6 +48,7 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} - name: Update base image run: sudo apt update -y @@ -80,6 +82,7 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} - name: Update base image run: sudo apt update -y @@ -113,6 +116,7 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} - name: Update base image run: sudo apt update -y @@ -151,6 +155,7 @@ jobs: with: fetch-depth: 0 path: falco + ref: ${{ github.event.pull_request.head.sha }} - name: Link falco repo to /source/falco run: |