From 3b6ff631d39addae4b61af96de0c5d505c8b98e3 Mon Sep 17 00:00:00 2001 From: DTLP Date: Thu, 6 Jun 2024 13:58:01 +0100 Subject: [PATCH] fetch-depth: 2 --- .github/workflows/kyverno-checks.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/kyverno-checks.yaml b/.github/workflows/kyverno-checks.yaml index b47639fe..b27434e8 100644 --- a/.github/workflows/kyverno-checks.yaml +++ b/.github/workflows/kyverno-checks.yaml @@ -12,6 +12,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + # Fetch both the merge commit GitHub generates for the pull request + # and both its parents, i.e. the tip of the branch and the tip of master + fetch-depth: 2 - name: Get list of changed files id: changed-files run: |