chore: add Copilot cloud-sandbox setup + dev container (pre-install hve-core-all) - #1
Merged
Merged
Conversation
Pre-install the hve-core-all Copilot CLI plugin from microsoft/hve-core in both a GitHub Copilot cloud sandbox and a matching dev container. - .devcontainer/setup-hve-core.sh: shared best-effort, non-fatal, idempotent installer for the Copilot CLI and the hve-core-all plugin. - .github/workflows/copilot-setup-steps.yml: single copilot-setup-steps job on ubuntu-latest (checkout, Node 20 + npm cache, install deps, run installer, verify tools); third-party actions SHA-pinned. - .devcontainer/devcontainer.json: typescript-node:20 base + node feature; postCreate installs deps then runs the installer. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 65d3185e-e948-4605-adfd-c9d44003a2a4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a GitHub Copilot cloud-sandbox setup and a matching dev container that both pre-install the hve-core-all Copilot CLI plugin from
microsoft/hve-core. Three files only; no existing code touched.✅ Verified live in this PR's CI
The
copilot-setup-stepsworkflow ran on a cleanubuntu-latestrunner for this PR and every step passed (conclusion: success), including a real, headless, unauthenticatedhve-core-allinstall:Step results:
Checkout✅ ·Setup Node.js✅ ·Install dependencies (npm ci)✅ ·Install hve-core-all plugin✅ ·Verify tools✅.Files added
.devcontainer/setup-hve-core.sh— shared, best-effort, non-fatal, idempotent installer (set -euo pipefail, executable100755). Installs the Copilot CLI if missing, adds themicrosoft/hve-coremarketplace, installshve-core-all@hve-core, and printscopilot plugin list. Every step degrades to a::warning::so the sandbox / dev container still starts on failure (e.g. no network or interactive auth required)..github/workflows/copilot-setup-steps.yml—workflow_dispatch+push/pull_requestfiltered to this workflow file; top-levelpermissions: contents: read; one job named exactlycopilot-setup-stepsonubuntu-latest(job-levelcontents: read). Steps: checkout (persist-credentials: false) → setup Node 20 + npm cache →npm ci(continue-on-error) → Install hve-core-all plugin runningbash .devcontainer/setup-hve-core.sh(continue-on-error,GITHUB_TOKEN: ${{ github.token }}) → Verify tools..devcontainer/devcontainer.json—mcr.microsoft.com/devcontainers/typescript-node:20base +ghcr.io/devcontainers/features/node:1(v20);postCreateCommand: npm ci && bash .devcontainer/setup-hve-core.sh.Detected stack
engines >=18; CI matrix 18/20/22; release uses Node 20) · Package manager: npm (package-lock.json,npm ci).Exact build / test / lint commands (from
package.json)npm run build(tsup)npm run typecheck(tsc --noEmit)npm run lint(eslint src)npm test(vitest run)Action pinning
The repo's existing workflows pin by floating
@v4tags (not SHA). Because this is a security-sensitive setup file, third-party actions here are pinned by full commit SHA with a version comment:actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0Validation
copilot-setup-stepsrun on this PR (ubuntu-latest)npm cion the runnerhve-core-allinstall on the runnerMarketplace "hve-core" added successfully→Plugin "hve-core-all" installed successfully→hve-core-all@hve-core (v3.3.101)actionlinton the workflowrun:blocks)jq empty)devcontainer buildpostCreatecommands (npm ci+ the installer) are proven green by the CI run abovehve-core-all install result — ✅ SUCCESS
hve-core-all@hve-core (v3.3.101)installed with no authentication required; theInstall hve-core-all pluginstep concludedsuccess(see log excerpt above).copilot plugin install hve-core-all@hve-core→Plugin "hve-core-all" installed successfully.andcopilot plugin listshowshve-core-all@hve-core (v3.3.101).Headless verdict:
hve-core-allinstalls successfully and appears incopilot plugin list(v3.3.101).Notes
::warning::; the workflow step iscontinue-on-error).