Repository navigation
New version: Coder.CoderDesktop version 0.9.1 - #483234
cdrci (cdrci) wants to merge 1 commit into
Conversation
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.
|
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 |
|
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 |
📖 Description
✅ Checklist
📦 Manifest Checklist
winget validate --manifest <path>(validation guide)winget install --manifest <path>Microsoft Reviewers: Open in CodeFlow