From d8a11c287d77ed4513c84297574d221b84ed0880 Mon Sep 17 00:00:00 2001 From: JonJagger Date: Mon, 9 Sep 2024 10:07:59 +0100 Subject: [PATCH] CI: in checkout steps explicitly set fetch depth to zero or one --- .github/workflows/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f3cc90b8..8ccdd249 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,7 +34,7 @@ jobs: steps: - uses: actions/checkout@v4.1.1 with: - fetch-depth: 10 + fetch-depth: 1 - name: Prepare outputs for workflow jobs id: vars @@ -66,6 +66,8 @@ jobs: pull-requests: read steps: - uses: actions/checkout@v4.1.1 + with: + fetch-depth: 1 - name: Setup Kosli CLI uses: kosli-dev/setup-cli-action@v2 @@ -127,7 +129,7 @@ jobs: steps: - uses: actions/checkout@v4.1.1 with: - fetch-depth: 100 + fetch-depth: 1 - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v4