Skip to content

Commit 57239bb

Browse files
authored
Try to make git commands from CI actions work (#2542)
1 parent 28261d4 commit 57239bb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/CI.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,18 @@ jobs:
3535
container: khronosgroup/docker-images@sha256:724f67d8562445523644abf017d5d192b369fafc122de75e9d26792c649821a0
3636

3737
steps:
38+
# The repo is extracted under /__w/Vulkan-Docs/Vulkan-Docs, apparently
39+
# with different ownership than the checks performed below.
40+
# This causes 'fatal: detected dubious ownership in repostory' and
41+
# failure to run the checks, although it is not actually propagated
42+
# back to the Makefile as errors.
3843
- uses: actions/checkout@v4
3944
- name: Internal self-test of the check_spec_links script
4045
run: pytest test*.py
4146
working-directory: scripts
4247
- name: Generate a summary of problems for CI logs (if any)
4348
run: |
49+
git config --global --add safe.directory '*'
4450
mkdir -p gen/out/checks
4551
python3 scripts/check_spec_links.py --html=gen/out/checks/problems.html > /dev/null || true
4652
make CHECK_XREFS= allchecks

0 commit comments

Comments
 (0)