From c88acfbfbddf157b146c37c362a9c0200b08e6ec Mon Sep 17 00:00:00 2001 From: Dmitry Ilyin <6576495+widgetii@users.noreply.github.com> Date: Wed, 20 May 2026 21:08:11 +0300 Subject: [PATCH] ci/manifest: pass --repo to gh so script doesn't need cwd .git MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The manifest workflow checks out master into ./master/ and gh-pages into ./pages/ so neither is the workflow's cwd. `gh release list` without --repo then fails with "not a git repository". Pass --repo $GITHUB_REPOSITORY to every gh call so the script is cwd-independent. Reproduced locally with cd /tmp && python3 .../enrich_manifest.py /tmp/m — same trace as the failed workflow run 26180862470. After the fix the same command emits the expected empty manifest. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/scripts/enrich_manifest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/scripts/enrich_manifest.py b/.github/scripts/enrich_manifest.py index d1013530e..2508f8f9b 100644 --- a/.github/scripts/enrich_manifest.py +++ b/.github/scripts/enrich_manifest.py @@ -31,7 +31,11 @@ def gh(*args: str) -> str: - return subprocess.check_output(["gh", *args], text=True) + # Always pass --repo so we don't depend on a .git in cwd + # (the workflow runs the script from a path without .git). + return subprocess.check_output( + ["gh", *args, "--repo", REPO], text=True + ) def list_dated_releases() -> list[dict]: