igneum/tools/ci/gh-env.sh
igneum-labs dd954178b8 Every gate gh call reads Igneum's own gh directory, never the founder's (main's rule, 8 October 2026, 10:0x UK): tools/ci/gh-env.sh sets GH_CONFIG_DIR=~/.config/gh-igneum for the gate, the hook, the merge tool and the CI-state reader
At 09:46 UK the founder's gh had his other account active (his own work) and tools/ci/gh-account-check.sh refused every Igneum push from the Mac (the v5 lane's 56a50160 held local). The check now reads Igneum's directory: empty, it refuses naming the one step (the founder or main stores the Igneum token there with `GH_CONFIG_DIR=~/.config/gh-igneum gh auth login --with-token`; no lane does); another login, refused and named; the stored entry, passes; while tools/ci/github-suspended stands it skips with a line, because no gh call can succeed and the hook already refuses GitHub pushes, so the lanes land on the mirror meanwhile. Known-failed first: an empty directory, another login, the founder's directory never read (the fake gh records the directory it was given), the marker's skip, no gh. IGNEUM_GH_CONFIG_DIR overrides the path for the self-tests.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-08 08:51:55 +00:00

8 lines
790 B
Bash
Executable file

#!/usr/bin/env bash
# Igneum's own gh configuration directory (main's rule, 8 October 2026, 10:0x UK): every gh call the gate, the pre-push hook, the merge
# tool and the CI-state reader make runs with GH_CONFIG_DIR set to an Igneum-only directory, so the founder's own gh (which he switches
# between his accounts as he works) is never read and never switched by a lane. The directory holds the Igneum login's token and nothing
# else; storing that token there is the one step no lane takes (the founder or main: GH_CONFIG_DIR=~/.config/gh-igneum gh auth login
# --with-token < <the Igneum token>). Source this file; IGNEUM_GH_CONFIG_DIR overrides the path (self-tests).
export GH_CONFIG_DIR="${IGNEUM_GH_CONFIG_DIR:-$HOME/.config/gh-igneum}"
mkdir -p "$GH_CONFIG_DIR" 2>/dev/null || true