Skip to content

Commit eaf85d9

Browse files
committed
ci: trust the container checkout before source versioning
Signed-off-by: Ralf W. Grosse-Kunstleve <[email protected]>
1 parent b7c7625 commit eaf85d9

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎.github/workflows/ci-pixi-source-test.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,10 @@ jobs:
253253
# third_party/cccl provides the CCCL headers cuda.core compiles against.
254254
submodules: true
255255

256+
- name: Trust the checkout for container source builds
257+
# checkout's temporary Git configuration does not reach later steps.
258+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
259+
256260
- name: Setup proxy cache
257261
uses: nv-gha-runners/setup-proxy-cache@main
258262
continue-on-error: true

‎ci/tools/bindings_scm_version.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def _git(repo_root: Path, *args: str) -> str:
5959
["git", *args], # noqa: S607
6060
cwd=repo_root,
6161
check=True,
62-
capture_output=True,
62+
stdout=subprocess.PIPE,
6363
text=True,
6464
).stdout.strip()
6565

0 commit comments

Comments
 (0)