Fix missing commit hash in container-built binaries (#27271)

Git refuses to read the repo inside the container jobs because the
workspace is owned by a different user, so CMake silently gets no
branch or commit hash. Mark the workspace as a safe directory, as
check-code-formatting already does.
This commit is contained in:
Dylan authored and GitHub committed 2026-10-11 09:14:22 +00:00
1 parent 6e42a9fe4c
commit d28122de93
2 files changed
+7

No files matched your search

+6
View File
@@ -345,6 +345,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v7
- run: git config --global --add safe.directory $PWD
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.21
with:
@@ -490,6 +491,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v7
- run: git config --global --add safe.directory $PWD
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.21
with:
@@ -519,6 +521,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v7
- run: git config --global --add safe.directory $PWD
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.21
with:
@@ -574,6 +577,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v7
- run: git config --global --add safe.directory $PWD
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.21
with:
@@ -590,6 +594,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v7
- run: git config --global --add safe.directory $PWD
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.21
with:
@@ -738,6 +743,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v7
- run: git config --global --add safe.directory $PWD
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.21
with: