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) <noreply@anthropic.com>
This commit is contained in:
Frank Stellmacher
2026-04-24 22:19:28 +02:00
committed by GitHub
parent 908c7ceebb
commit dd947df0b9
+6
View File
@@ -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