Skip to content

fix(gh-aw): preserve Windows/XDG gh extension env in verifier and align quickstart safe-update docs - #2433

Merged
tamirdresher merged 2 commits into
devfrom
fix/gh-aw-windows-verifier-and-quickstart
Nov 9, 2026
Merged

tamirdresher merged 2 commits into
devfrom
fix/gh-aw-windows-verifier-and-quickstart

Conversation

@tamirdresher

Copy link
Copy Markdown
Collaborator

Fixes newcomer bugs found during the live GH-AW Quick Start end-to-end run:

  1. Windows verifier environment stripping (workflows/shared/squad-install-verifier.mjs): Preserves APPDATA, GH_DATA_DIR, LOCALAPPDATA, SystemRoot, TEMP, TMP, USERPROFILE, XDG_CONFIG_HOME, and XDG_DATA_HOME in spawnChecked() so --strict-compile on Windows resolves the pinned gh-aw extension in %LOCALAPPDATA%\GitHub CLI\extensions\gh-aw. Updates workflows/squad-workflows.manifest.json and embedded digests.
  2. Safe-update allowlist (docs/src/content/docs/guide/gh-aw.md and gh-aw-enlistment skill): Documents all three restricted secrets (GH_AW_GITHUB_READ_APP_PRIVATE_KEY, SQUAD_GITHUB_APP_PRIVATE_KEY, SQUAD_GITHUB_TOKEN) reported by gh aw add under gh-aw v0.91.5.
  3. Preflight gh auth status: Uses gh auth status --hostname github.com so machines with additional GHE hosts in hosts.yml do not exit 1 under set -euo pipefail.
  4. Quick Start .vscode/settings.json callout: Explicitly notes in the Quick Start Step 7 callout that .vscode/settings.json is intentionally left untracked.

…gn quickstart safe-update docs

- Preserve APPDATA, GH_DATA_DIR, LOCALAPPDATA, SystemRoot, TEMP, TMP, USERPROFILE, XDG_CONFIG_HOME, and XDG_DATA_HOME in squad-install-verifier.mjs spawnChecked() so strict-compile on Windows finds the pinned gh-aw extension instead of falling back to an unpinned install.
- Update the first-install safe-update allowlist in the GH-AW guide and gh-aw-enlistment skill to include GH_AW_GITHUB_READ_APP_PRIVATE_KEY alongside SQUAD_GITHUB_APP_PRIVATE_KEY, SQUAD_GITHUB_TOKEN, and github/squad/.github/actions/squad-init.
- Scope preflight gh auth status to --hostname github.com so multi-host setups do not fail under set -euo pipefail.
- Refresh workflows/squad-workflows.manifest.json and embedded verifier digests.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI auto review requested due to automatic review settings November 9, 2026 13:50
@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

🟠 Impact Analysis — PR #2433

Risk tier: 🟠 HIGH

📊 Summary

Metric Count
Files changed 12
Files added 1
Files modified 11
Files deleted 0
Modules touched 6

🎯 Risk Factors

  • 12 files changed (6-20 → MEDIUM)
  • 6 modules touched (5-8 → HIGH)

📦 Modules Affected

docs (1 file)
  • docs/src/content/docs/guide/gh-aw.md
root (7 files)
  • .changeset/gh-aw-windows-verifier-and-quickstart.md
  • templates/skills/gh-aw-enlistment/SKILL.md
  • workflows/package/squad-bootstrap.md
  • workflows/shared/squad-install-verifier.mjs
  • workflows/skills/gh-aw-enlistment/SKILL.md
  • workflows/squad-bootstrap.md
  • workflows/squad-workflows.manifest.json
squad-cli (1 file)
  • packages/squad-cli/templates/skills/gh-aw-enlistment/SKILL.md
squad-sdk (1 file)
  • packages/squad-sdk/templates/skills/gh-aw-enlistment/SKILL.md
templates (1 file)
  • .squad-templates/skills/gh-aw-enlistment/SKILL.md
tests (1 file)
  • test/gh-aw-enlistment-skill.test.ts

This report is generated automatically for every PR. See #733 for details.

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

🛫 PR Readiness Check

ℹ️ This comment updates on each push. Last checked: commit 4dfd318

PR Scope: 🔧 Infrastructure

⚠️ 3 item(s) to address before review

Status Check Details
❌ Single commit 2 commits — consider squashing before review
✅ Not in draft Ready for review
✅ Branch up to date Up to date with dev
❌ Copilot review No Copilot review yet — it may still be processing
✅ Changeset present Changeset file found
✅ Scope clean No .squad/ or docs/proposals/ files
✅ No merge conflicts No merge conflicts
❌ Copilot threads resolved 1 unresolved Copilot thread(s) — fix and resolve before merging
✅ CI passing All checks passing

Files Changed (12 files, +131 −77)

File +/−
.changeset/gh-aw-windows-verifier-and-quickstart.md +6 −0
.squad-templates/skills/gh-aw-enlistment/SKILL.md +11 −11
docs/src/content/docs/guide/gh-aw.md +10 −8
packages/squad-cli/templates/skills/gh-aw-enlistment/SKILL.md +11 −11
packages/squad-sdk/templates/skills/gh-aw-enlistment/SKILL.md +11 −11
templates/skills/gh-aw-enlistment/SKILL.md +11 −11
test/gh-aw-enlistment-skill.test.ts +27 −4
workflows/package/squad-bootstrap.md +1 −1
workflows/shared/squad-install-verifier.mjs +24 −1
workflows/skills/gh-aw-enlistment/SKILL.md +11 −11
workflows/squad-bootstrap.md +1 −1
workflows/squad-workflows.manifest.json +7 −7

Total: +131 −77


This check runs automatically on every push. Fix any ❌ items and push again.
See CONTRIBUTING.md and PR Requirements for details.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The bundled template changes lack a required changeset or CHANGELOG.md update, causing the changelog CI gate to fail unless the documented skip-changelog exemption is granted.

1 open issue
What changed in this PR

This PR addresses GH-AW onboarding issues by preserving Windows/XDG environment settings during verification and aligning Squad’s installation guidance with the expected safe-update report.

Changes:

  • Preserve environment variables needed for extension discovery and refresh verifier-related digests.
  • Document all three restricted secrets and scope authentication checks to github.com across enlistment skills.
  • Clarify optional editor-file staging and update regression assertions.
File Description
workflows/​squad-workflows.manifest.json Refresh verifier, skill, and bootstrap hashes.
workflows/​squad-bootstrap.md Update the embedded verifier digest.
workflows/​skills/​gh-aw-enlistment/​SKILL.md Align packaged authentication and safe-update guidance.
workflows/​shared/​squad-install-verifier.mjs Expand the subprocess environment allowlist.
workflows/​package/​squad-bootstrap.md Synchronize the packaged verifier digest.
test/​gh-aw-enlistment-skill.test.ts Assert environment keys and revised documentation contracts.
templates/​skills/​gh-aw-enlistment/​SKILL.md Synchronize root template guidance.
packages/​squad-sdk/​templates/​skills/​gh-aw-enlistment/​SKILL.md Synchronize SDK template guidance.
packages/​squad-cli/​templates/​skills/​gh-aw-enlistment/​SKILL.md Synchronize CLI template guidance.
docs/​src/​content/​docs/​guide/​gh-aw.md Update preflight, safe-update, and editor-file instructions.
.squad-templates/​skills/​gh-aw-enlistment/​SKILL.md Update canonical enlistment guidance.

Review effort: Balanced (auto)


<!-- allowlist-start -->
- Restricted secrets: **`SQUAD_GITHUB_APP_PRIVATE_KEY`** and **`SQUAD_GITHUB_TOKEN`**
- Restricted secrets: **`GH_AW_GITHUB_READ_APP_PRIVATE_KEY`**, **`SQUAD_GITHUB_APP_PRIVATE_KEY`**, and **`SQUAD_GITHUB_TOKEN`**
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@tamirdresher
tamirdresher merged commit b37155b into dev Nov 9, 2026
33 checks passed
@tamirdresher
tamirdresher deleted the fix/gh-aw-windows-verifier-and-quickstart branch November 9, 2026 14:08
tamirdresher added a commit that referenced this pull request Nov 9, 2026
Updates the approved SQUAD_SHA in the GH-AW guide to the merge commit of #2433 (�37155bef49c8e2ff6a211dfe71bda53157bc92f), which includes the Windows verifier environment fix and updated safe-update allowlist.

Co-authored-by: Copilot <Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants