From dd947df0b9ae73e29d66f714648bfb83f125c273 Mon Sep 17 00:00:00 2001 From: Frank Stellmacher <171614930+Psychotoxical@users.noreply.github.com> Date: Fri, 24 Apr 2026 22:19:28 +0200 Subject: [PATCH] fix(ci): mark checkout as safe.directory for flatpak build container (#296) The flatpak-github-actions container runs as root, but the actions/checkout workspace is owned by the runner user. Without a global safe.directory entry git aborts later steps (notably gh release upload, which probes git internally) with "fatal: detected dubious ownership". Co-authored-by: Claude Opus 4.7 (1M context) --- .github/workflows/release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f47c8a42..44f93b4f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -242,6 +242,12 @@ jobs: steps: - uses: actions/checkout@v5 + # Container runs as root but the checkout is owned by the runner user; + # without this, any later `git` (including gh release upload's internal + # git probe) aborts with "dubious ownership". + - name: mark workspace as safe for git + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" + - name: install source-generation tools run: | dnf install -y python3-pip python3-aiohttp