diff --git a/.github/workflows/goimports.yml b/.github/workflows/goimports.yml
index cedddcf8f67ea6acb55cddddfffcd1770cfc342e..9e5a9c063b2fc7bd50630ef9ce13655fe4276f75 100644
--- a/.github/workflows/goimports.yml
+++ b/.github/workflows/goimports.yml
@@ -7,7 +7,9 @@ jobs:
     - uses: actions/setup-go@v2
       with:
         go-version: '1.17'
-    - uses: actions/checkout@master
+    - uses: actions/checkout@v2
+      with:
+        fetch-depth: 0
     - name: Check imports
       shell: bash
       run: |
diff --git a/.github/workflows/publish_on_master.yml b/.github/workflows/publish_on_master.yml
index b813853fe1c61b658c9ad52a28cd1a6b5ece8fed..75fb21ffaa739b2b98ee055c18d1d8f29d5a3884 100644
--- a/.github/workflows/publish_on_master.yml
+++ b/.github/workflows/publish_on_master.yml
@@ -7,7 +7,9 @@ jobs:
   publish:
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@master
+      - uses: actions/checkout@v2
+        with:
+          fetch-depth: 0
       - name: Set up Docker Buildx
         uses: docker/setup-buildx-action@v1
       - name: Login to DockerHub
diff --git a/.github/workflows/publish_on_tag.yml b/.github/workflows/publish_on_tag.yml
index 6943938b6d10931c32522bc544d0aa5019eefb46..e265adae7477770dd974e5612fae6a30ee0bd596 100644
--- a/.github/workflows/publish_on_tag.yml
+++ b/.github/workflows/publish_on_tag.yml
@@ -7,7 +7,9 @@ jobs:
   publish:
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@master
+      - uses: actions/checkout@v2
+        with:
+          fetch-depth: 0
       - id: release_version
         run: echo ::set-output name=value::${GITHUB_REF:11}
       - name: Set up Docker Buildx
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 0ee5c251bef3dde4f0a096ce3a4211595d918f56..3b0891e7fed3e131fb73570c1e8e87f2b3e78f8e 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -7,7 +7,9 @@ jobs:
       - uses: actions/setup-go@v2
         with:
           go-version: '1.17'
-      - uses: actions/checkout@master
+      - uses: actions/checkout@v2
+        with:
+          fetch-depth: 0
       - uses: actions/cache@v2
         with:
           path: |
diff --git a/.github/workflows/test_e2e.yml b/.github/workflows/test_e2e.yml
index de5244831703f57f3aa0c78c8c94810b5b7b457f..0a6fd44e4d411d06f8313ad05d5f76749975a5df 100644
--- a/.github/workflows/test_e2e.yml
+++ b/.github/workflows/test_e2e.yml
@@ -11,7 +11,9 @@ jobs:
     - uses: actions/setup-go@v2
       with:
         go-version: '1.17'
-    - uses: actions/checkout@master
+    - uses: actions/checkout@v2
+      with:
+        fetch-depth: 0
     - name: Check whether HCLOUD_TOKEN needs to be fetched from TTS
       id: check_tts
       env: