Skip to content

Add GitHub Action to install latest stable DSCv3#2

Draft
Copilot wants to merge 2 commits intocopilot/create-github-action-install-dscfrom
copilot/sub-pr-1
Draft

Add GitHub Action to install latest stable DSCv3#2
Copilot wants to merge 2 commits intocopilot/create-github-action-install-dscfrom
copilot/sub-pr-1

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 23, 2026

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) or latest (default, resolves via GitHub API)
Output: dsc-version — the version that was installed

- uses: PowerShell/setup-dsc@v1
  with:
    dsc-version: 'latest'   # or e.g. '3.0.0'

Implementation

  • action.yml — action metadata, node20 runner
  • src/main.ts — entry point
  • src/installer.ts — version resolution, download, extract, cache, PATH injection
  • src/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/core v3 ESM-only exports)

Platform support

OS x64 arm64
Linux
macOS
Windows

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.

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
Copilot AI requested a review from SteveL-MSFT April 23, 2026 18:00
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