From 196cf7a3343589d26ef9f98982c0513625c5ba5c Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Thu, 25 Jan 2024 12:23:48 +0100 Subject: [PATCH] Update actions/checkout to v4 (#3152) --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/push.yml | 7 ++----- .github/workflows/release.yml | 8 ++++---- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 965dd9fa19..a218f1e55a 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -21,7 +21,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Initialize CodeQL uses: github/codeql-action/init@v2 diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 5480b6c90f..1e8dca4f1f 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -11,10 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 - - - name: Unshallow - run: git fetch --prune --unshallow + uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v1 @@ -52,7 +49,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Go uses: actions/setup-go@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4b638acc24..257e4f517c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,10 +11,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 - - - name: Unshallow - run: git fetch --prune --unshallow + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Set up Go uses: actions/setup-go@v1