ci(workflows): align copilot-setup-steps install scope#1641
Open
WilliamBerryiii wants to merge 1 commit into
Open
ci(workflows): align copilot-setup-steps install scope#1641WilliamBerryiii wants to merge 1 commit into
WilliamBerryiii wants to merge 1 commit into
Conversation
Change PowerShell module installs (PowerShell-Yaml, PSScriptAnalyzer, Pester) from -Scope CurrentUser to -Scope AllUsers so subsequent steps and shells in the Copilot Coding Agent runner can resolve the modules without per-user PSModulePath fixups. Remove an erroneous 'npx --no vally -- --version' line from the verification block. Companion adjustments in .devcontainer/scripts/on-create.sh and .vscode/settings.json are intentionally deferred to a separate PR (PR F) per the stacked-PRs plan.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1641 +/- ##
==========================================
- Coverage 85.50% 85.49% -0.01%
==========================================
Files 82 82
Lines 11805 11805
==========================================
- Hits 10094 10093 -1
- Misses 1711 1712 +1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
This was referenced May 24, 2026
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.
Pull Request
Description
This PR makes two small, surgical edits to
.github/workflows/copilot-setup-steps.yml— the workflow that prebuilds the Copilot Coding Agent environment:-Scope CurrentUserto-Scope AllUsersfor the three required modules (PowerShell-Yaml 0.4.7,PSScriptAnalyzer 1.25.0,Pester 5.7.1). Versions and the optionalHVE_PSGALLERY_SOURCE_URLrepository registration are unchanged.AllUserswrites modules to/usr/local/share/powershell/Modules, which is on the defaultPSModulePathfor any user and any shell on the runner, so subsequent workflow steps and ad-hoc shells do not need per-userPSModulePathfixups to resolve the modules.npx --no vally -- --versionfrom the tool verification block. The intended command does not exist; it was a stray typo (likely from--no-installfollowed by a partial package name) and currently fails silently or noisily depending on the environment.This PR is a sibling of #1497, branched off
main. It is independent of PRs A/B/C/D in the post-#1497 stack and can land in any order relative to them.Scope
This PR ships only the workflow edit. The matching local-environment changes from the original snapshot (
.devcontainer/scripts/on-create.shand.vscode/settings.json) are deliberately deferred to a separate PR (PR F) pending user confirmation of intent. See follow-on WI-02 in the planning log.Related Issue(s)
Sibling of #1497. No other issue references.
Type of Change
Select all that apply:
Code & Documentation:
Infrastructure & Configuration:
AI Artifacts:
prompt-builderagent and addressed all feedback.github/instructions/*.instructions.md).github/prompts/*.prompt.md).github/agents/*.agent.md).github/skills/*/SKILL.md)Other:
.ps1,.sh,.py)Sample Prompts (for AI Artifact Contributions)
For detailed contribution requirements, see:
Testing
Automated validation performed by the agent:
npm run lint:yaml— PASS (50 workflow files, includingcopilot-setup-steps.yml).actionlint .github/workflows/copilot-setup-steps.yml— PASS (EXIT=0).npm run lint:ps— skipped in the sandbox (PSGallery network restricted); the diff contains no.ps1changes, so PSScriptAnalyzer would have nothing new to flag.Security analysis findings:
-Scope AllUsersrequires root on the runner. Thecopilot-setupjob already runs as root onubuntu-latest, so no privilege escalation is introduced.npx --no vally -- --versionis removed, not replaced.Diff-based assessments:
+3 / -4, one file, zero new files, zero structural changes to the workflow graph.Note
Manual testing was not performed. The next live run of
copilot-setup-steps.ymlon a Coding Agent task will exercise the new install scope end-to-end.Checklist
Required Checks
AI Artifact Contributions
/prompt-analyzeto review contributionprompt-builderreviewRequired Automated Checks
The following validation commands must pass before merging:
npm run lint:mdnpm run spell-checknpm run lint:frontmatternpm run validate:skillsnpm run lint:md-linksnpm run lint:psnpm run plugin:generatenpm run docs:testSecurity Considerations
Additional Notes
Companion PRs in the post-#1497 work stream:
feat/sssc-planner-rai-parity).feat/sssc-planner-rai-parity).applyToregression guard (sibling offmain)..vscode/settings.jsoncompanion changes, pending user confirmation of intent (WI-02).