ci: bump actions/checkout from v5 to v6

Every workflow currently pins `actions/checkout` to v5, which was introduced primarily to move to the Node.js 24 runtime. v6 is the next release and worth picking up so we stay on a maintained version of the action. The one behaviorally interesting change in v6: `persist-credentials` now stores the helper credentials under `$RUNNER_TEMP` instead of writing them directly into the local `.git/config`. Two implications follow: 1. In the normal case this is an unambiguous improvement -- the token no longer lands in `.git/config`, reducing the risk of inadvertently leaking it through workspace archiving (`upload-artifact` snapshots, cache entries, core dumps, ...). 2. Docker container actions require an Actions Runner of at least v2.329.0 to find the credentials in their new location. The github.com-hosted runners our CI uses are already past that version, so this does not affect us. Downstream users running self-hosted runners may need to update them before adopting this version of the action. Risk analysis: our checkout steps either check out the default repository (no special credential requirements) or, in the `vs-build` job, explicitly set `repository: microsoft/vcpkg` and `path: compat/vcbuild/vcpkg`. Neither case relies on the precise location of the persisted credentials -- subsequent steps interact with the API via the runner-provided `GITHUB_TOKEN` directly -- so the v6 credential-storage change is transparent to our workflows. The diff is purely the `@vN` identifier; there are no input or output changes. See also: - Release notes: https://github.com/actions/checkout/releases - Changelog: https://github.com/actions/checkout/blob/main/CHANGELOG.md - Compare: https://github.com/actions/checkout/compare/v5...v6 Originally-authored-by: dependabot[bot] <support@github.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Apr 30, 2026 at 07:34 UTC 20cd2c96a7b8930d451ec1189e80f7238f68d0ab
4 files changed +15 -15
.github/workflows/check-style.yml
+1 -1
@@ -20,7 +20,7 @@ jobs:
20 jobname: ClangFormat
21 runs-on: ubuntu-latest
22 steps:
23 - - uses: actions/checkout@v5
23 + - uses: actions/checkout@v6
24 with:
25 fetch-depth: 0
26
.github/workflows/check-whitespace.yml
+1 -1
@@ -19,7 +19,7 @@ jobs:
19 check-whitespace:
20 runs-on: ubuntu-latest
21 steps:
22 - - uses: actions/checkout@v5
22 + - uses: actions/checkout@v6
23 with:
24 fetch-depth: 0
25
.github/workflows/coverity.yml
+1 -1
@@ -38,7 +38,7 @@ jobs:
38 COVERITY_LANGUAGE: cxx
39 COVERITY_PLATFORM: overridden-below
40 steps:
41 - - uses: actions/checkout@v5
41 + - uses: actions/checkout@v6
42 - name: install minimal Git for Windows SDK
43 if: contains(matrix.os, 'windows')
44 uses: git-for-windows/setup-git-for-windows-sdk@v1
.github/workflows/main.yml
+12 -12
@@ -112,7 +112,7 @@ jobs:
112 group: windows-build-${{ github.ref }}
113 cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
114 steps:
115 - - uses: actions/checkout@v5
115 + - uses: actions/checkout@v6
116 - uses: git-for-windows/setup-git-for-windows-sdk@v1
117 - name: build
118 shell: bash
@@ -173,10 +173,10 @@ jobs:
173 group: vs-build-${{ github.ref }}
174 cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
175 steps:
176 - - uses: actions/checkout@v5
176 + - uses: actions/checkout@v6
177 - uses: git-for-windows/setup-git-for-windows-sdk@v1
178 - name: initialize vcpkg
179 - uses: actions/checkout@v5
179 + uses: actions/checkout@v6
180 with:
181 repository: 'microsoft/vcpkg'
182 path: 'compat/vcbuild/vcpkg'
@@ -258,7 +258,7 @@ jobs:
258 group: windows-meson-build-${{ github.ref }}
259 cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
260 steps:
261 - - uses: actions/checkout@v5
261 + - uses: actions/checkout@v6
262 - uses: actions/setup-python@v6
263 - name: Set up dependencies
264 shell: pwsh
@@ -286,7 +286,7 @@ jobs:
286 group: windows-meson-test-${{ matrix.nr }}-${{ github.ref }}
287 cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
288 steps:
289 - - uses: actions/checkout@v5
289 + - uses: actions/checkout@v6
290 - uses: actions/setup-python@v6
291 - name: Set up dependencies
292 shell: pwsh
@@ -341,7 +341,7 @@ jobs:
341 TEST_OUTPUT_DIRECTORY: ${{github.workspace}}/t
342 runs-on: ${{matrix.vector.pool}}
343 steps:
344 - - uses: actions/checkout@v5
344 + - uses: actions/checkout@v6
345 - run: ci/install-dependencies.sh
346 - run: ci/run-build-and-tests.sh
347 - name: print test failures
@@ -362,7 +362,7 @@ jobs:
362 CI_JOB_IMAGE: ubuntu-latest
363 runs-on: ubuntu-latest
364 steps:
365 - - uses: actions/checkout@v5
365 + - uses: actions/checkout@v6
366 - run: ci/install-dependencies.sh
367 - run: ci/run-build-and-minimal-fuzzers.sh
368 dockerized:
@@ -439,7 +439,7 @@ jobs:
439 else
440 apt-get -q update && apt-get -q -y install git
441 fi
442 - - uses: actions/checkout@v5
442 + - uses: actions/checkout@v6
443 - run: ci/install-dependencies.sh
444 - run: useradd builder --create-home
445 - run: chown -R builder .
@@ -464,7 +464,7 @@ jobs:
464 group: static-analysis-${{ github.ref }}
465 cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
466 steps:
467 - - uses: actions/checkout@v5
467 + - uses: actions/checkout@v6
468 - run: ci/install-dependencies.sh
469 - run: ci/run-static-analysis.sh
470 - run: ci/check-directional-formatting.bash
@@ -480,7 +480,7 @@ jobs:
480 group: rust-analysis-${{ github.ref }}
481 cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
482 steps:
483 - - uses: actions/checkout@v5
483 + - uses: actions/checkout@v6
484 - run: ci/install-dependencies.sh
485 - run: ci/run-rust-checks.sh
486 sparse:
@@ -494,7 +494,7 @@ jobs:
494 group: sparse-${{ github.ref }}
495 cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
496 steps:
497 - - uses: actions/checkout@v5
497 + - uses: actions/checkout@v6
498 - name: Install other dependencies
499 run: ci/install-dependencies.sh
500 - run: make sparse
@@ -510,6 +510,6 @@ jobs:
510 CI_JOB_IMAGE: ubuntu-latest
511 runs-on: ubuntu-latest
512 steps:
513 - - uses: actions/checkout@v5
513 + - uses: actions/checkout@v6
514 - run: ci/install-dependencies.sh
515 - run: ci/test-documentation.sh