Add GitHub Action to install latest stable DSCv3#2
Draft
Copilot wants to merge 2 commits intocopilot/create-github-action-install-dscfrom
Draft
Add GitHub Action to install latest stable DSCv3#2Copilot wants to merge 2 commits intocopilot/create-github-action-install-dscfrom
Copilot wants to merge 2 commits intocopilot/create-github-action-install-dscfrom
Conversation
Agent-Logs-Url: https://github.com/PowerShell/setup-dsc/sessions/24a73d1a-e203-48d6-a36f-99b4f9c342a8 Co-authored-by: SteveL-MSFT <11859881+SteveL-MSFT@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] [WIP] Add GitHub Action to install latest stable DSC package
Add GitHub Action to install latest stable DSCv3
Apr 23, 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.
Implements
setup-dsc, a GitHub Action that downloads and installs DSCv3 from GitHub Releases, adds it to PATH, and caches it via@actions/tool-cache.Action interface
Input:
dsc-version— exact version (e.g.3.0.0) orlatest(default, resolves via GitHub API)Output:
dsc-version— the version that was installedImplementation
action.yml— action metadata,node20runnersrc/main.ts— entry pointsrc/installer.ts— version resolution, download, extract, cache, PATH injectionsrc/utils.ts— pure helpers for platform/arch mapping and asset name/URL generation (separated to allow unit testing without mocking@actions/*)dist/index.js— esbuild bundle (ncc incompatible with@actions/corev3 ESM-only exports)Platform support
CI (
.github/workflows/ci.yml)Build/lint/test job + end-to-end action smoke test on all three OS runners. All jobs scoped to
permissions: contents: read.