Skip to content

New version: Coder.CoderDesktop version 0.9.1 - #483234

Open
cdrci (cdrci) wants to merge 1 commit into
microsoft:masterfrom
cdrci:Coder.CoderDesktop-0.9.1-cd5695b0-8f63-44a6-b936-9250bb16bce0
Open

cdrci (cdrci) wants to merge 1 commit into
microsoft:masterfrom
cdrci:Coder.CoderDesktop-0.9.1-cd5695b0-8f63-44a6-b936-9250bb16bce0

Conversation

@cdrci

@cdrci cdrci (cdrci) commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

📖 Description

✅ Checklist

📦 Manifest Checklist

  • Checked that there aren't other open pull requests for the same manifest update/change
  • This PR only modifies one (1) manifest
  • Validated manifest locally with winget validate --manifest <path> (validation guide)
  • Tested manifest locally with winget install --manifest <path>
  • Manifest conforms to the 1.28 schema

Note: <path> is the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

@cdrci

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Validation Pipeline Badge Publish Pipeline Badge

@wingetvalidator-prod wingetvalidator-prod Bot added the New-Manifest The pull request adds new manifest content to the repository. label Nov 18, 2026
Dean Sheather (deansheather) added a commit to coder/coder-desktop-windows that referenced this pull request Nov 18, 2026
Moves the winget submission into the `release` job, so a release needs
one approval in the `code-signing` environment instead of two
(`code-signing`, then `winget`).

**Before merging:** set a fresh cdrci token as `CDRCI_GITHUB_TOKEN` in
the `code-signing` environment. Today it only exists in `winget`, so the
new step would fail with "winget-token is empty". Retiring the `winget`
environment is a separate coder/github-org-terraform PR, which goes
after this one.

## Changes

- **New `.github/actions/winget/action.yml`:** a local composite action
with the old `winget` job's steps:
  - sync cdrci's fork of winget-pkgs;
  - install `wingetcreate`;
  - submit the updated manifest;
  - comment on the winget-pkgs PR.

  Other changes in the action:
- It drops the old job's checkout and "Fetch git tags" steps, because
none of the steps read the working tree.
- It downloads `wingetcreate.exe` from the pinned GitHub release
`v1.28.1.0`, not `aka.ms/wingetcreate/latest`, and fails unless its
SHA-256 is `63d980ba…0413`.
- `aka.ms` currently redirects to that same release, so v0.9.1 used this
exact binary.
- Three sources agree on the hash: my own download, GitHub's asset
digest, and Microsoft's `wingetcreate.exe.txt` checksum file.
    - The binary carries a Microsoft Authenticode signature.
- Upgrading means changing the version and hash in the action.
coder/coder#32387 pins the same build.
- It checks its inputs up front: the version must be `X.Y.Z` and the
token must be non-empty.
- Inputs reach the scripts through `env:` only, never interpolated into
them.
- **`release.yaml`:**
- The `winget` job is replaced by a final `Submit to winget` step in
`release`. Only that step receives `CDRCI_GITHUB_TOKEN`; the build,
signing and appcast steps never see it.
- The step is last, so a winget failure can't block the GitHub release
or the appcast update. The release just shows as failed.
- `timeout-minutes` goes from 15 to 25. In v0.9.1, `release` took about
5 minutes and `winget` under 3.
  - The `outputs:` block is removed; only the `winget` job read it.
  - The comments are updated.

## Trade-offs

- **The token now sits in the same environment as the signing setup.**
Anyone who could run code in `code-signing` could also read the cdrci
token. That's acceptable because `code-signing` only runs on `v*` tags,
after a desktop release manager approves.
- **The submission step's `github.token` now has `contents: write`,**
because it shares the `release` job's permissions. The old job had
`contents: read`. The step only uses it for `gh release view`.

## Checks

- `actionlint -shellcheck= .github/workflows/release.yaml`: clean. The
unknown `depot-windows-latest` label warning is gone with the job.
- `zizmor --offline` on both files: no errors or warnings.
-
[v0.9.1](https://github.com/coder/coder-desktop-windows/actions/runs/44297469059)
ran these steps successfully as a separate job and opened
microsoft/winget-pkgs#483234. The commands are unchanged except for the
wingetcreate download and its path, which moves to `$RUNNER_TEMP`.

---

AI disclosure: an AI coding agent (Xum) wrote this change and ran the
checks above at my direction. It stays a draft until I've reviewed it.
@wingetvalidator-prod wingetvalidator-prod Bot added the Validation-Unattended-Failed During installation testing the installer was blocked on user input and no switches were provided. label Nov 18, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Hello cdrci (@cdrci),

During installation testing, this application failed to install without user input. Did you forget to add Silent or SilentWithProgress switches?

This can also happen when a dependency is missing. You can test based on the documentation.

Please investigate a fix and resubmit the Pull Request.

You may also try using the Windows Package Manager Manifest Creator to determine the proper installer type. If the installer type is MSIX, MSI, or a known installer technology like NullSoft, Inno, etc. the wingetcreate tool can detect them and the winget client will know what switches to pass. If it's a .exe installer of an unknown type, you will need to search to determine the proper switches for Silent and SilentWithProgress.

Template: msftbot/validationError/installation/unattended

@microsoft-github-policy-service microsoft-github-policy-service Bot added Needs-Author-Feedback This needs a response from the author. Validation-Guide Something happened during validation. Provide the guide. labels Nov 18, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Thank you for your contribution cdrci (@cdrci)! There was an issue validating your pull request. Many common validation questions and issues can be resolved by reading through the Validation Guide. Please review the guide and update your pull request if needed. If you have any questions, feel free to ask for help!

Template: msftbot/validation/validationGuideAdded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs-Author-Feedback This needs a response from the author. New-Manifest The pull request adds new manifest content to the repository. Validation-Guide Something happened during validation. Provide the guide. Validation-Unattended-Failed During installation testing the installer was blocked on user input and no switches were provided.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants