Bumps the github-actions group with 14 updates in the / directory: | Package | From | To | | --- | --- | --- | | [step-security/harden-runner](https://github.com/step-security/harden-runner) | `2.21.1` | `2.23.0` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `7.0.1` | `7.0.2` | | [docker/login-action](https://github.com/docker/login-action) | `4.6.0` | `4.8.0` | | [pnpm/action-setup](https://github.com/pnpm/action-setup) | `6.1.0` | `6.1.1` | | [depot/build-push-action](https://github.com/depot/build-push-action) | `1.18.0` | `1.19.0` | | [actions/create-github-app-token](https://github.com/actions/create-github-app-token) | `3.3.0` | `3.4.0` | | [actions/download-artifact](https://github.com/actions/download-artifact) | `7.0.0` | `8.0.2` | | [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | `10.3.0` | `10.4.0` | | [linear/linear-release-action](https://github.com/linear/linear-release-action) | `0.18.1` | `0.18.2` | | [toshimaru/auto-author-assign](https://github.com/toshimaru/auto-author-assign) | `3.1.0` | `3.1.1` | | [ossf/scorecard-action](https://github.com/ossf/scorecard-action) | `2.5.0` | `2.6.0` | | [github/codeql-action/upload-sarif](https://github.com/github/codeql-action) | `4.39.0` | `4.39.4` | | [github/codeql-action/init](https://github.com/github/codeql-action) | `4.39.0` | `4.39.4` | | [github/codeql-action/analyze](https://github.com/github/codeql-action) | `4.39.0` | `4.39.4` | Updates `step-security/harden-runner` from 2.21.1 to 2.23.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/step-security/harden-runner/releases">step-security/harden-runner's releases</a>.</em></p> <blockquote> <h2>v2.23.0</h2> <h2>What's Changed</h2> <ul> <li>Added integration with the StepSecurity Secure Registry community tier, a hosted SaaS registry that is free for public repositories using GitHub-hosted runners with Harden-Runner. Enable it with <code>secure-registry: true</code> to route JavaScript package downloads through Secure Registry, which applies a default two-day cooldown and blocks known compromised packages. See the <a href="https://docs.stepsecurity.io/packages/secure-registry/community-tier">Community tier documentation</a> for setup and configuration.</li> <li>Bug fix: Redacted credentials and signatures from signed S3 URLs that could appear in agent error logs when event uploads failed.</li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/step-security/harden-runner/compare/v2.22.4...v2.23.0">https://github.com/step-security/harden-runner/compare/v2.22.4...v2.23.0</a></p> <h2>v2.22.4</h2> <h2>What's Changed</h2> <ul> <li>Fixed a Linux agent memory leak that could cause runners to run out of memory during jobs with heavy process or network activity.</li> <li>The workaround for GitHub’s DNS resolver and outbound proxy experiment on GitHub-hosted Linux runners now defaults to enabled when feature flags can’t be fetched.</li> <li>Improved HTTP/2 TLS interception on Linux (enterprise tier).</li> <li>Added retries for failed monitoring API requests, improving reliability of monitoring initialization and raw-event uploads.</li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/step-security/harden-runner/compare/v2.22.3...v2.22.4">https://github.com/step-security/harden-runner/compare/v2.22.3...v2.22.4</a></p> <h2>v2.22.3</h2> <h2>What's Changed</h2> <ul> <li>Added support for Avrea-hosted runners (enterprise tier)</li> <li>Fixed unexpected blocking of allowed connections caused by GitHub’s DNS resolver and outbound proxy experiment on GitHub-hosted Linux runners</li> <li>Added a feature flag to disable implicit AWS endpoint allowances on self-hosted Linux runners (enterprise tier)</li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/step-security/harden-runner/compare/v2.22.2...v2.22.3">https://github.com/step-security/harden-runner/compare/v2.22.2...v2.22.3</a></p> <h2>v2.22.2</h2> <h2>What's Changed</h2> <ul> <li>Fixed inbound (ingress) network traffic being incorrectly classified as outbound (egress) traffic on macOS</li> <li>Fixed implicit endpoints intended for self-hosted runners being applied to custom VM environments on Linux (enterprise tier)</li> <li>Improved network and DNS tracing, enforcement logic, and process information correlation on Linux (enterprise tier)</li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/step-security/harden-runner/compare/v2.22.1...v2.22.2">https://github.com/step-security/harden-runner/compare/v2.22.1...v2.22.2</a></p> <h2>v2.22.1</h2> <h2>What's Changed</h2> <ul> <li>Fixed security rules not initializing on GHES self-hosted runners</li> <li>Fixed GHES connectivity in block mode by implicitly allowing the GHES hostname</li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/step-security/harden-runner/compare/v2.22.0...v2.22.1">https://github.com/step-security/harden-runner/compare/v2.22.0...v2.22.1</a></p> <h2>v2.22.0</h2> <h2>What's Changed</h2> <ul> <li>Linux ARM64 support for community tier</li> <li>GHES support for self-hosted VMs (enterprise tier)</li> <li>MacOS and Windows runner deny list support for block policy (enterprise tier).</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/step-security/harden-runner/commit/aebdcf6156ab6691adf63218240e476564a1ed4c"><code>aebdcf6</code></a> Merge pull request <a href="https://redirect.github.com/step-security/harden-runner/issues/723">#723</a> from step-security/rc-49</li> <li><a href="https://github.com/step-security/harden-runner/commit/6e7b4a9496c3b473b53942298f2312ee2f31eb72"><code>6e7b4a9</code></a> Merge pull request <a href="https://redirect.github.com/step-security/harden-runner/issues/720">#720</a> from step-security/docs/secure-registry-community-readme</li> <li><a href="https://github.com/step-security/harden-runner/commit/5fdd588ea008f964c603eb030a10a22f002de483"><code>5fdd588</code></a> docs: link community setup and clarify tier scope</li> <li><a href="https://github.com/step-security/harden-runner/commit/07a4d4f16d8af13be880cd5bb4d4246af3d00d75"><code>07a4d4f</code></a> docs: refine Secure Registry introduction and example</li> <li><a href="https://github.com/step-security/harden-runner/commit/b9940bc8fc164c918f089475f789aec6bd005be2"><code>b9940bc</code></a> docs: document Secure Registry community tier</li> <li><a href="https://github.com/step-security/harden-runner/commit/4b0841645111efc14c3e8661fb2f9355ef95187d"><code>4b08416</code></a> Merge pull request <a href="https://redirect.github.com/step-security/harden-runner/issues/719">#719</a> from sailikhith-stepsecurity/feat/secure-registry-ser...</li> <li><a href="https://github.com/step-security/harden-runner/commit/b4635e45c1e5e2c6cbfc1870184f9d41fbb635e3"><code>b4635e4</code></a> fix: keep the first secure-registry summary when the retry fails</li> <li><a href="https://github.com/step-security/harden-runner/commit/0bb4d8fbabc87016994ef9af55bba958724a9514"><code>0bb4d8f</code></a> feat: write the secure-registry job summary returned by the API</li> <li><a href="https://github.com/step-security/harden-runner/commit/193b0f9f4c9e119f96a54940eebaec986cc46a0a"><code>193b0f9</code></a> Merge pull request <a href="https://redirect.github.com/step-security/harden-runner/issues/717">#717</a> from sailikhith-stepsecurity/feat/secure-registry-npm</li> <li><a href="https://github.com/step-security/harden-runner/commit/0b07ee9a6bed3d2c4cf5c7aa1198e05a78026f45"><code>0b07ee9</code></a> fix: point npm at secure-registry only after setup has completed</li> <li>Additional commits viewable in <a href="https://github.com/step-security/harden-runner/compare/v2.21.1...aebdcf6156ab6691adf63218240e476564a1ed4c">compare view</a></li> </ul> </details> <br /> Updates `actions/upload-artifact` from 7.0.1 to 7.0.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/upload-artifact/releases">actions/upload-artifact's releases</a>.</em></p> <blockquote> <h2>v7.0.2</h2> <h2>What's Changed</h2> <ul> <li>Improves artifact download retries when the service returns HTTP 429 (rate limiting), including honoring valid Retry-After headers.</li> <li>Updates <code>@actions/artifact</code> to v6.3.1.</li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/tunc-d"><code>@tunc-d</code></a> made their first contribution in <a href="https://redirect.github.com/actions/upload-artifact/pull/821">actions/upload-artifact#821</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/upload-artifact/compare/v7.0.1...v7.0.2">https://github.com/actions/upload-artifact/compare/v7.0.1...v7.0.2</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/actions/upload-artifact/commit/cf430e030ddbb5b0abf93d22962f4752f3646cd9"><code>cf430e0</code></a> Merge pull request <a href="https://redirect.github.com/actions/upload-artifact/issues/822">#822</a> from actions/tunc-d-prepare-upload-v7-0-2</li> <li><a href="https://github.com/actions/upload-artifact/commit/c2acdedd35a8824a1552c7137f8c18288c3ea469"><code>c2acded</code></a> chore: prepare v7.0.2 release</li> <li><a href="https://github.com/actions/upload-artifact/commit/4687c1bbaa0a58abb517d90b4bbade6754c80c1a"><code>4687c1b</code></a> Merge pull request <a href="https://redirect.github.com/actions/upload-artifact/issues/821">#821</a> from actions/tunc-d-upload-artifact-package-bump</li> <li><a href="https://github.com/actions/upload-artifact/commit/8cbe1bebdb858105d8fdd88f81404d4de4595719"><code>8cbe1be</code></a> Bump <code>@actions/artifact</code> to 6.3.1</li> <li>See full diff in <a href="https://github.com/actions/upload-artifact/compare/v7.0.1...cf430e030ddbb5b0abf93d22962f4752f3646cd9">compare view</a></li> </ul> </details> <br /> Updates `docker/login-action` from 4.6.0 to 4.8.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/docker/login-action/releases">docker/login-action's releases</a>.</em></p> <blockquote> <h2>v4.8.0</h2> <ul> <li>Set Docker Hub OIDC token lifetime default to 1 hour by <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/login-action/pull/1070">docker/login-action#1070</a></li> <li>Bump <code>@aws-sdk/client-ecr</code> and <code>@aws-sdk/client-ecr-public</code> to 3.1161.0 in <a href="https://redirect.github.com/docker/login-action/pull/1103">docker/login-action#1103</a></li> <li>Bump <code>@docker/actions-toolkit</code> from 0.107.0 to 0.109.0 in <a href="https://redirect.github.com/docker/login-action/pull/1105">docker/login-action#1105</a></li> <li>Bump vite from 7.3.6 to 7.3.7 in <a href="https://redirect.github.com/docker/login-action/pull/1101">docker/login-action#1101</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/docker/login-action/compare/v4.7.0...v4.8.0">https://github.com/docker/login-action/compare/v4.7.0...v4.8.0</a></p> <h2>v4.7.0</h2> <ul> <li>Preserve explicit ECR settings in <code>registry-auth</code> by <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/login-action/pull/1089">docker/login-action#1089</a></li> <li>Use registry hosts for scoped credentials by <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/login-action/pull/1088">docker/login-action#1088</a></li> <li>Raise Docker Hub OIDC max expiry to 6 hours by <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/login-action/pull/1068">docker/login-action#1068</a></li> <li>Log Docker Hub OIDC token exchange progress by <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/login-action/pull/1061">docker/login-action#1061</a></li> <li>Bump <code>@aws-sdk/client-ecr</code> and <code>@aws-sdk/client-ecr-public</code> to 3.1154.0 in <a href="https://redirect.github.com/docker/login-action/pull/1093">docker/login-action#1093</a></li> <li>Bump <code>@docker/actions-toolkit</code> from 0.94.0 to 0.107.0 in <a href="https://redirect.github.com/docker/login-action/pull/1100">docker/login-action#1100</a></li> <li>Bump <code>@humanfs/node</code> from 0.16.7 to 0.16.8 in <a href="https://redirect.github.com/docker/login-action/pull/1077">docker/login-action#1077</a></li> <li>Bump csv-parse from 7.0.1 to 7.0.3 in <a href="https://redirect.github.com/docker/login-action/pull/1078">docker/login-action#1078</a></li> <li>Bump handlebars from 4.7.9 to 4.7.10 in <a href="https://redirect.github.com/docker/login-action/pull/1091">docker/login-action#1091</a></li> <li>Bump js-yaml from 5.2.2 to 5.5.0 in <a href="https://redirect.github.com/docker/login-action/pull/1066">docker/login-action#1066</a></li> <li>Bump postcss from 8.5.22 to 8.5.26 in <a href="https://redirect.github.com/docker/login-action/pull/1071">docker/login-action#1071</a></li> <li>Bump postcss-selector-parser from 7.1.1 to 7.1.6 in <a href="https://redirect.github.com/docker/login-action/pull/1092">docker/login-action#1092</a></li> <li>Bump source-map-js from 1.2.1 to 1.2.2 in <a href="https://redirect.github.com/docker/login-action/pull/1090">docker/login-action#1090</a></li> <li>Bump undici from 6.27.0 to 6.29.1 in <a href="https://redirect.github.com/docker/login-action/pull/1085">docker/login-action#1085</a></li> <li>Bump uuid from 14.0.1 to 14.0.3 in <a href="https://redirect.github.com/docker/login-action/pull/1096">docker/login-action#1096</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/docker/login-action/compare/v4.6.0...v4.7.0">https://github.com/docker/login-action/compare/v4.6.0...v4.7.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/docker/login-action/commit/8aa5831fb8d48d8f76594c7ddde61ae58019f550"><code>8aa5831</code></a> Merge pull request <a href="https://redirect.github.com/docker/login-action/issues/1105">#1105</a> from docker/dependabot/npm_and_yarn/docker/actions-t...</li> <li><a href="https://github.com/docker/login-action/commit/043f81d4e05e27a19df9020f2e39dd823f4d2d8f"><code>043f81d</code></a> [dependabot skip] chore: update generated content</li> <li><a href="https://github.com/docker/login-action/commit/3ff6998ba6383ce47260ffcee94d4c6842a8b82a"><code>3ff6998</code></a> build(deps): bump <code>@docker/actions-toolkit</code> from 0.107.0 to 0.109.0</li> <li><a href="https://github.com/docker/login-action/commit/694ef6a96b98401c14cb99361bb25142fc540e33"><code>694ef6a</code></a> Merge pull request <a href="https://redirect.github.com/docker/login-action/issues/1103">#1103</a> from docker/dependabot/npm_and_yarn/aws-sdk-dependen...</li> <li><a href="https://github.com/docker/login-action/commit/7c6e412a106e8281efb167d841ac30d9a1e148bc"><code>7c6e412</code></a> [dependabot skip] chore: update generated content</li> <li><a href="https://github.com/docker/login-action/commit/aa2441f70facbd0c60782b7bfa92a9430707b661"><code>aa2441f</code></a> build(deps): bump the aws-sdk-dependencies group across 1 directory with 2 up...</li> <li><a href="https://github.com/docker/login-action/commit/d6c10b0849c4d7c082f3e15f0d7dd2c5a3b6885a"><code>d6c10b0</code></a> Merge pull request <a href="https://redirect.github.com/docker/login-action/issues/1106">#1106</a> from docker/dependabot/github_actions/codeql-actions...</li> <li><a href="https://github.com/docker/login-action/commit/319f1ee2c2e4d3703fe262e3a6c99fa9ec1b66af"><code>319f1ee</code></a> Merge pull request <a href="https://redirect.github.com/docker/login-action/issues/1104">#1104</a> from docker/dependabot/github_actions/actions/setup-...</li> <li><a href="https://github.com/docker/login-action/commit/b483b7fe94742a2022eaca73acbef42f721e8ad0"><code>b483b7f</code></a> Merge pull request <a href="https://redirect.github.com/docker/login-action/issues/1101">#1101</a> from docker/dependabot/npm_and_yarn/vite-7.3.7</li> <li><a href="https://github.com/docker/login-action/commit/dc7d67cbf207b05c94d86fc176c0b8a3043322f0"><code>dc7d67c</code></a> Merge pull request <a href="https://redirect.github.com/docker/login-action/issues/1070">#1070</a> from crazy-max/increase-oidc-default-expiry</li> <li>Additional commits viewable in <a href="https://github.com/docker/login-action/compare/dbcb813823bdd20940b903addbd779551569679f...8aa5831fb8d48d8f76594c7ddde61ae58019f550">compare view</a></li> </ul> </details> <br /> Updates `pnpm/action-setup` from 6.1.0 to 6.1.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pnpm/action-setup/releases">pnpm/action-setup's releases</a>.</em></p> <blockquote> <h2>v6.1.1</h2> <h2>What's Changed</h2> <ul> <li>fix: refresh native bootstrap and test shared store reuse by <a href="https://github.com/zkochan"><code>@zkochan</code></a> in <a href="https://redirect.github.com/pnpm/action-setup/pull/293">pnpm/action-setup#293</a></li> <li>fix: update pnpm 11 bootstrap to 11.28.10 by <a href="https://github.com/rstacruz25"><code>@rstacruz25</code></a> in <a href="https://redirect.github.com/pnpm/action-setup/pull/292">pnpm/action-setup#292</a></li> <li>chore: update pinned GitHub Actions by <a href="https://github.com/deining"><code>@deining</code></a> in <a href="https://redirect.github.com/pnpm/action-setup/pull/223">pnpm/action-setup#223</a></li> <li>fix: skip saving missing cache directories by <a href="https://github.com/zkochan"><code>@zkochan</code></a> in <a href="https://redirect.github.com/pnpm/action-setup/pull/294">pnpm/action-setup#294</a></li> <li>docs: clarify manifest-based version selection by <a href="https://github.com/djmurphy32"><code>@djmurphy32</code></a> in <a href="https://redirect.github.com/pnpm/action-setup/pull/244">pnpm/action-setup#244</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/rstacruz25"><code>@rstacruz25</code></a> made their first contribution in <a href="https://redirect.github.com/pnpm/action-setup/pull/292">pnpm/action-setup#292</a></li> <li><a href="https://github.com/djmurphy32"><code>@djmurphy32</code></a> made their first contribution in <a href="https://redirect.github.com/pnpm/action-setup/pull/244">pnpm/action-setup#244</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/pnpm/action-setup/compare/v6.1.0...v6.1.1">https://github.com/pnpm/action-setup/compare/v6.1.0...v6.1.1</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pnpm/action-setup/commit/73e46992e05b19abd31f2f3c20e0e7370d762115"><code>73e4699</code></a> docs: clarify manifest-based version selection (<a href="https://redirect.github.com/pnpm/action-setup/issues/244">#244</a>)</li> <li><a href="https://github.com/pnpm/action-setup/commit/c05d46d6ff1986dc166ad1882c38232d9015676d"><code>c05d46d</code></a> fix: skip saving missing cache directories (<a href="https://redirect.github.com/pnpm/action-setup/issues/294">#294</a>)</li> <li><a href="https://github.com/pnpm/action-setup/commit/343d2b1d953109201381d963395a6b1109cd426a"><code>343d2b1</code></a> Bump GitHub action workflows (<a href="https://redirect.github.com/pnpm/action-setup/issues/223">#223</a>)</li> <li><a href="https://github.com/pnpm/action-setup/commit/9a15f15afbea585970b770f4b919eda8250c56ab"><code>9a15f15</code></a> fix: update pnpm 11 bootstrap to 11.28.10 (<a href="https://redirect.github.com/pnpm/action-setup/issues/292">#292</a>)</li> <li><a href="https://github.com/pnpm/action-setup/commit/7cf8c4cab097056288b0f535a86824dd751082c9"><code>7cf8c4c</code></a> fix: refresh native bootstrap and test shared store reuse (<a href="https://redirect.github.com/pnpm/action-setup/issues/293">#293</a>)</li> <li>See full diff in <a href="https://github.com/pnpm/action-setup/compare/ea17c68df8912ef543352723c149a84f56e3d413...73e46992e05b19abd31f2f3c20e0e7370d762115">compare view</a></li> </ul> </details> <br /> Updates `depot/build-push-action` from 1.18.0 to 1.19.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/depot/build-push-action/releases">depot/build-push-action's releases</a>.</em></p> <blockquote> <h2>v1.19.0</h2> <h2>What's Changed</h2> <ul> <li>fix: report quiet build process failures (<a href="https://redirect.github.com/depot/build-push-action/issues/50">#50</a>) <a href="https://github.com/agocharbhatia"><code>@agocharbhatia</code></a></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/depot/build-push-action/commit/0f27be7c41d76663a98518dfe68f1c46582242c4"><code>0f27be7</code></a> Merge pull request <a href="https://redirect.github.com/depot/build-push-action/issues/50">#50</a> from agocharbhatia/handle-quiet-build-failures</li> <li><a href="https://github.com/depot/build-push-action/commit/b14598cd22e24880b167bd6437b3031612035139"><code>b14598c</code></a> fix: detect quiet build process failures</li> <li>See full diff in <a href="https://github.com/depot/build-push-action/compare/98e78adca7817480b8185f474a400b451d74e287...0f27be7c41d76663a98518dfe68f1c46582242c4">compare view</a></li> </ul> </details> <br /> Updates `actions/create-github-app-token` from 3.3.0 to 3.4.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/create-github-app-token/releases">actions/create-github-app-token's releases</a>.</em></p> <blockquote> <h2>v3.4.0</h2> <h2><a href="https://github.com/actions/create-github-app-token/compare/v3.3.0...v3.4.0">3.4.0</a> (2026-11-18)</h2> <h3>Features</h3> <ul> <li>bump actions/setup-node from 6 to 7 (<a href="https://redirect.github.com/actions/create-github-app-token/issues/410">#410</a>) (<a href="https://github.com/actions/create-github-app-token/commit/09c1ab7079f14af5f0d64c9325739c49a8541f56">09c1ab7</a>)</li> <li>bump actions/stale from 10 to 11 (<a href="https://redirect.github.com/actions/create-github-app-token/issues/409">#409</a>) (<a href="https://github.com/actions/create-github-app-token/commit/679345a20e2e07130130e6cf0301b9e897f18cd5">679345a</a>)</li> <li>bump stefanzweifel/git-auto-commit-action from 7.2.0 to 7.2.1 in the github-actions group (<a href="https://redirect.github.com/actions/create-github-app-token/issues/408">#408</a>) (<a href="https://github.com/actions/create-github-app-token/commit/660c44c8ce22207448fbba2730cd2913052c9de3">660c44c</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>deps:</strong> bump undici (<a href="https://redirect.github.com/actions/create-github-app-token/issues/406">#406</a>) (<a href="https://github.com/actions/create-github-app-token/commit/18e9994c8d13ac7c7e2bbcc3355a1a4f31d30de7">18e9994</a>)</li> </ul> <h2>v3.4.0-beta</h2> <h2><a href="https://github.com/actions/create-github-app-token/compare/v3.3.0...v3.4.0-beta">3.4.0-beta</a> (2026-11-17)</h2> <h3>Features</h3> <ul> <li>support GitHub Actions OIDC authentication (<a href="https://redirect.github.com/actions/create-github-app-token/issues/411">#411</a>) (<a href="https://github.com/actions/create-github-app-token/commit/8240f10d3ae05b4d450da83e8e247111a36eaf2c">8240f10</a>)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/actions/create-github-app-token/blob/main/CHANGELOG.md">actions/create-github-app-token's changelog</a>.</em></p> <blockquote> <h1>Changelog</h1> <h2><a href="https://github.com/actions/create-github-app-token/compare/v3.3.0...v3.4.0">3.4.0</a> (2026-11-18)</h2> <h3>Features</h3> <ul> <li>bump actions/setup-node from 6 to 7 (<a href="https://redirect.github.com/actions/create-github-app-token/issues/410">#410</a>) (<a href="https://github.com/actions/create-github-app-token/commit/09c1ab7079f14af5f0d64c9325739c49a8541f56">09c1ab7</a>)</li> <li>bump actions/stale from 10 to 11 (<a href="https://redirect.github.com/actions/create-github-app-token/issues/409">#409</a>) (<a href="https://github.com/actions/create-github-app-token/commit/679345a20e2e07130130e6cf0301b9e897f18cd5">679345a</a>)</li> <li>bump stefanzweifel/git-auto-commit-action from 7.2.0 to 7.2.1 in the github-actions group (<a href="https://redirect.github.com/actions/create-github-app-token/issues/408">#408</a>) (<a href="https://github.com/actions/create-github-app-token/commit/660c44c8ce22207448fbba2730cd2913052c9de3">660c44c</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>deps:</strong> bump undici (<a href="https://redirect.github.com/actions/create-github-app-token/issues/406">#406</a>) (<a href="https://github.com/actions/create-github-app-token/commit/18e9994c8d13ac7c7e2bbcc3355a1a4f31d30de7">18e9994</a>)</li> </ul> <h2><a href="https://github.com/actions/create-github-app-token/compare/v3.2.0...v3.3.0">3.3.0</a> (2026-10-12)</h2> <h3>Features</h3> <ul> <li>update permission inputs (<a href="https://redirect.github.com/actions/create-github-app-token/issues/399">#399</a>) (<a href="https://github.com/actions/create-github-app-token/commit/a47236f79f79fcbc3532af49fe3a5ded89529b6e">a47236f</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>deps:</strong> bump nested undici from 6.24.0 to 6.29.0 (<a href="https://redirect.github.com/actions/create-github-app-token/issues/403">#403</a>) (<a href="https://github.com/actions/create-github-app-token/commit/12461a3a794e67c032f1eff5bb95ece9427eb4fb">12461a3</a>)</li> <li><strong>deps:</strong> bump the production-dependencies group across 1 directory with 3 updates (<a href="https://redirect.github.com/actions/create-github-app-token/issues/395">#395</a>) (<a href="https://github.com/actions/create-github-app-token/commit/a69c19ddfdf8e1ab093900e0064524ce9309c807">a69c19d</a>)</li> </ul> <h2><a href="https://github.com/actions/create-github-app-token/compare/v3.1.1...v3.2.0">3.2.0</a> (2026-05-12)</h2> <h3>Features</h3> <ul> <li>add support for enterprise-level GitHub Apps (<a href="https://redirect.github.com/actions/create-github-app-token/issues/263">#263</a>) (<a href="https://github.com/actions/create-github-app-token/commit/952a2a7073df6bfa5f49bc469ec895b6ec1acea4">952a2a7</a>)</li> <li>support full repository names in <code>repositories</code> input (<a href="https://redirect.github.com/actions/create-github-app-token/issues/372">#372</a>) (<a href="https://github.com/actions/create-github-app-token/commit/85eb8dd41472213aed25d1a126460e0069138ab6">85eb8dd</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>deps:</strong> bump <code>@actions/core</code> from 3.0.0 to 3.0.1 in the production-dependencies group (<a href="https://redirect.github.com/actions/create-github-app-token/issues/364">#364</a>) (<a href="https://github.com/actions/create-github-app-token/commit/43e5c345bfd4d4f3ecea019ad0042001a09dd857">43e5c34</a>)</li> <li>validate private-key input (<a href="https://redirect.github.com/actions/create-github-app-token/issues/376">#376</a>) (<a href="https://github.com/actions/create-github-app-token/commit/f24bbd89643991c0de27ae823c01791b2c6bafdd">f24bbd8</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/actions/create-github-app-token/commit/f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc"><code>f418cff</code></a> chore(main): release 3.4.0 (<a href="https://redirect.github.com/actions/create-github-app-token/issues/415">#415</a>)</li> <li><a href="https://github.com/actions/create-github-app-token/commit/09c1ab7079f14af5f0d64c9325739c49a8541f56"><code>09c1ab7</code></a> feat: bump actions/setup-node from 6 to 7 (<a href="https://redirect.github.com/actions/create-github-app-token/issues/410">#410</a>)</li> <li><a href="https://github.com/actions/create-github-app-token/commit/01b8009bd6d3d8cce95b612d9793c2b76ef46ee3"><code>01b8009</code></a> test: strip ANSI escape codes from snapshot output (<a href="https://redirect.github.com/actions/create-github-app-token/issues/412">#412</a>)</li> <li><a href="https://github.com/actions/create-github-app-token/commit/e05686484174f08cd73b6c67321c77132a9ace91"><code>e056864</code></a> build(deps-dev): bump undici from 8.12.3 to 8.12.4 (<a href="https://redirect.github.com/actions/create-github-app-token/issues/416">#416</a>)</li> <li><a href="https://github.com/actions/create-github-app-token/commit/679345a20e2e07130130e6cf0301b9e897f18cd5"><code>679345a</code></a> feat: bump actions/stale from 10 to 11 (<a href="https://redirect.github.com/actions/create-github-app-token/issues/409">#409</a>)</li> <li><a href="https://github.com/actions/create-github-app-token/commit/660c44c8ce22207448fbba2730cd2913052c9de3"><code>660c44c</code></a> feat: bump stefanzweifel/git-auto-commit-action from 7.2.0 to 7.2.1 in the gi...</li> <li><a href="https://github.com/actions/create-github-app-token/commit/18e9994c8d13ac7c7e2bbcc3355a1a4f31d30de7"><code>18e9994</code></a> fix(deps): bump undici (<a href="https://redirect.github.com/actions/create-github-app-token/issues/406">#406</a>)</li> <li>See full diff in <a href="https://github.com/actions/create-github-app-token/compare/64ab729a6294000f5aa4a4bc0b73d1f32bc45510...f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc">compare view</a></li> </ul> </details> <br /> Updates `actions/download-artifact` from 7.0.0 to 8.0.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/download-artifact/releases">actions/download-artifact's releases</a>.</em></p> <blockquote> <h2>v8.0.2</h2> <h2>What's Changed</h2> <ul> <li>Update the readme by <a href="https://github.com/danwkennedy"><code>@danwkennedy</code></a> in <a href="https://redirect.github.com/actions/download-artifact/pull/473">actions/download-artifact#473</a></li> <li>Improves artifact download retries when the service returns HTTP 429 (rate limiting), including honoring valid Retry-After headers.</li> <li>Update <code>@actions/artifact</code> to 6.3.1 by <a href="https://github.com/tunc-d"><code>@tunc-d</code></a> in <a href="https://redirect.github.com/actions/download-artifact/pull/492">actions/download-artifact#492</a></li> <li>Prepare download-artifact v8.0.2 by <a href="https://github.com/tunc-d"><code>@tunc-d</code></a> in <a href="https://redirect.github.com/actions/download-artifact/pull/493">actions/download-artifact#493</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/tunc-d"><code>@tunc-d</code></a> made their first contribution in <a href="https://redirect.github.com/actions/download-artifact/pull/492">actions/download-artifact#492</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/download-artifact/compare/v8.0.1...v8.0.2">https://github.com/actions/download-artifact/compare/v8.0.1...v8.0.2</a></p> <h2>v8.0.1</h2> <h2>What's Changed</h2> <ul> <li>Support for CJK characters in the artifact name by <a href="https://github.com/danwkennedy"><code>@danwkennedy</code></a> in <a href="https://redirect.github.com/actions/download-artifact/pull/471">actions/download-artifact#471</a></li> <li>Add a regression test for artifact name + content-type mismatches by <a href="https://github.com/danwkennedy"><code>@danwkennedy</code></a> in <a href="https://redirect.github.com/actions/download-artifact/pull/472">actions/download-artifact#472</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/download-artifact/compare/v8...v8.0.1">https://github.com/actions/download-artifact/compare/v8...v8.0.1</a></p> <h2>v8.0.0</h2> <h2>v8 - What's new</h2> <blockquote> <p>[!IMPORTANT] actions/download-artifact@v8 has been migrated to an ESM module. This should be transparent to the caller but forks might need to make significant changes.</p> </blockquote> <blockquote> <p>[!IMPORTANT] Hash mismatches will now error by default. Users can override this behavior with a setting change (see below).</p> </blockquote> <h3>Direct downloads</h3> <p>To support direct uploads in <code>actions/upload-artifact</code>, the action will no longer attempt to unzip all downloaded files. Instead, the action checks the <code>Content-Type</code> header ahead of unzipping and skips non-zipped files. Callers wishing to download a zipped file as-is can also set the new <code>skip-decompress</code> parameter to <code>true</code>.</p> <h3>Enforced checks (breaking)</h3> <p>A previous release introduced digest checks on the download. If a download hash didn't match the expected hash from the server, the action would log a warning. Callers can now configure the behavior on mismatch with the <code>digest-mismatch</code> parameter. To be secure by default, we are now defaulting the behavior to <code>error</code> which will fail the workflow run.</p> <h3>ESM</h3> <p>To support new versions of the @actions/* packages, we've upgraded the package to ESM.</p> <h2>What's Changed</h2> <ul> <li>Don't attempt to un-zip non-zipped downloads by <a href="https://github.com/danwkennedy"><code>@danwkennedy</code></a> in <a href="https://redirect.github.com/actions/download-artifact/pull/460">actions/download-artifact#460</a></li> <li>Add a setting to specify what to do on hash mismatch and default it to <code>error</code> by <a href="https://github.com/danwkennedy"><code>@danwkennedy</code></a> in <a href="https://redirect.github.com/actions/download-artifact/pull/461">actions/download-artifact#461</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/download-artifact/compare/v7...v8.0.0">https://github.com/actions/download-artifact/compare/v7...v8.0.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/actions/download-artifact/commit/9000827ccba6bdab643e8b6fd33ac0654aef8333"><code>9000827</code></a> Merge pull request <a href="https://redirect.github.com/actions/download-artifact/issues/493">#493</a> from actions/tunc-d-prepare-download-v8-0-2</li> <li><a href="https://github.com/actions/download-artifact/commit/e455989ae00f5bdd4054f05d3e972c6bf8a62dc5"><code>e455989</code></a> Prepare download-artifact v8.0.2</li> <li><a href="https://github.com/actions/download-artifact/commit/a00b90c4a2f01d73a8c89552caabca6ea3b43137"><code>a00b90c</code></a> Merge pull request <a href="https://redirect.github.com/actions/download-artifact/issues/492">#492</a> from actions/tunc-d-download-artifact-package-bump</li> <li><a href="https://github.com/actions/download-artifact/commit/29bb7ce6af5345aeab5bb4774ce7249ee3ccc27f"><code>29bb7ce</code></a> Update <code>@actions/artifact</code> to 6.3.1</li> <li><a href="https://github.com/actions/download-artifact/commit/484a0b528fb4d7bd804637ccb632e47a0e638317"><code>484a0b5</code></a> Update the readme (<a href="https://redirect.github.com/actions/download-artifact/issues/473">#473</a>)</li> <li><a href="https://github.com/actions/download-artifact/commit/3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c"><code>3e5f45b</code></a> Add regression tests for CJK characters (<a href="https://redirect.github.com/actions/download-artifact/issues/471">#471</a>)</li> <li><a href="https://github.com/actions/download-artifact/commit/e6d03f67377d4412c7aa56a8e2e4988e6ec479dd"><code>e6d03f6</code></a> Add a regression test for artifact name + content-type mismatches (<a href="https://redirect.github.com/actions/download-artifact/issues/472">#472</a>)</li> <li><a href="https://github.com/actions/download-artifact/commit/70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3"><code>70fc10c</code></a> Merge pull request <a href="https://redirect.github.com/actions/download-artifact/issues/461">#461</a> from actions/danwkennedy/digest-mismatch-behavior</li> <li><a href="https://github.com/actions/download-artifact/commit/f258da9a506b755b84a09a531814700b86ccfc62"><code>f258da9</code></a> Add change docs</li> <li><a href="https://github.com/actions/download-artifact/commit/ccc058e5fbb0bb2352213eaec3491e117cbc4a5c"><code>ccc058e</code></a> Fix linting issues</li> <li>Additional commits viewable in <a href="https://github.com/actions/download-artifact/compare/v7...9000827ccba6bdab643e8b6fd33ac0654aef8333">compare view</a></li> </ul> </details> <br /> Updates `astral-sh/setup-uv` from 10.3.0 to 10.4.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/astral-sh/setup-uv/releases">astral-sh/setup-uv's releases</a>.</em></p> <blockquote> <h2>v10.4.0 🌈 New input <code>require-checksums</code> and bug fixing</h2> <h2>Changes</h2> <p>This release adds the new input <code>require-checksums</code>. Its <code>false</code> by default and when you enable it, it will fail the action when no checksum is known for a release. This can happen when you use <code>version: latest</code> and the version of <code>astral-sh/setup-uv</code> that you are running does not bundle the known checksum for the uv version just released. In that case you can always supply the checksum yourself using the <code>checksum</code> input.</p> <p>It is also a second layer of defense when using <code>version: latest-known</code></p> <hr /> <p>Special thanks to <a href="https://github.com/yamamoto7"><code>@yamamoto7</code></a> that fixed using PEP440 specifiers in the <code>version</code> and <a href="https://github.com/zsol"><code>@zsol</code></a> for fixing <code>cache-python: true</code> on Windows runners.</p> <h2>🐛 Bug fixes</h2> <ul> <li>fix: resolve partial PEP 440 specifiers with PEP 440 semantics <a href="https://github.com/yamamoto7"><code>@yamamoto7</code></a> (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1128">#1128</a>)</li> <li>Repair cached Python directory junctions on Windows <a href="https://github.com/zsol"><code>@zsol</code></a> (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1122">#1122</a>)</li> </ul> <h2>🚀 Enhancements</h2> <ul> <li>Add the <code>require-checksums</code> input <a href="https://github.com/woodruffw"><code>@woodruffw</code></a> (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1139">#1139</a>)</li> </ul> <h2>🧰 Maintenance</h2> <ul> <li>chore: update known checksums for 0.13.9 @<a href="https://github.com/apps/github-actions">github-actions[bot]</a> (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1147">#1147</a>)</li> <li>Update CI Node.js to 24.22.1 for the eMudhra fix <a href="https://github.com/woodruffw"><code>@woodruffw</code></a> (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1146">#1146</a>)</li> <li>Pin astral-sh/github-actions to 2026.11.16.0 <a href="https://github.com/woodruffw"><code>@woodruffw</code></a> (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1145">#1145</a>)</li> <li>chore: update known checksums for 0.13.8 @<a href="https://github.com/apps/github-actions">github-actions[bot]</a> (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1131">#1131</a>)</li> <li>Fix workflow tests after ubuntu-latest switch to 26.04 <a href="https://github.com/eifinger"><code>@eifinger</code></a> (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1129">#1129</a>)</li> <li>Run demudhra first on macOS <a href="https://github.com/woodruffw"><code>@woodruffw</code></a> (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1125">#1125</a>)</li> <li>chore: update known checksums for 0.13.7 @<a href="https://github.com/apps/github-actions">github-actions[bot]</a> (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1124">#1124</a>)</li> </ul> <h2>📚 Documentation</h2> <ul> <li>docs: update version references to v10.3.3 @<a href="https://github.com/apps/github-actions">github-actions[bot]</a> (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1120">#1120</a>)</li> </ul> <h2>⬆️ Dependency updates</h2> <ul> <li>chore(deps): bump zizmorcore/zizmor-action from 0.6.4 to 0.7.1 @<a href="https://github.com/apps/dependabot">dependabot[bot]</a> (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1144">#1144</a>)</li> <li>chore(deps): roll up Dependabot dependency updates <a href="https://github.com/eifinger"><code>@eifinger</code></a> (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1130">#1130</a>)</li> <li>chore(deps): bump release-drafter/release-drafter from 7.7.0 to 7.9.0 @<a href="https://github.com/apps/dependabot">dependabot[bot]</a> (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1121">#1121</a>)</li> </ul> <h2>v10.3.3 🌈 Use Astral mirror for version manifests with GitHub fallback</h2> <h2>Changes</h2> <p>This release contains something that should have been included a very long time ago. Sorry for sleeping on that.</p> <p>This action now retrieves the release manifest that contains the available versions, their download links and checksums from the Astral mirror, rather than trying GitHub first. This should present much more stable. (Known checksums are still checked, so the security impact does not change)</p> <p>Also a big thank you to <a href="https://github.com/soujasK"><code>@soujasK</code></a> for a set of bugfixes 👏</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/astral-sh/setup-uv/commit/1db35dd8eee11c5894872e0b383ae6c406cf738d"><code>1db35dd</code></a> chore: update known checksums for 0.13.9 (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1147">#1147</a>)</li> <li><a href="https://github.com/astral-sh/setup-uv/commit/b0fdc328c65964c12e997446c1c75b18577b9f1a"><code>b0fdc32</code></a> Update CI Node.js to 24.22.1 for the eMudhra fix (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1146">#1146</a>)</li> <li><a href="https://github.com/astral-sh/setup-uv/commit/de938e707d6c238b34e29b5770a011e3155e2a3c"><code>de938e7</code></a> Add the <code>require-checksums</code> input (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1139">#1139</a>)</li> <li><a href="https://github.com/astral-sh/setup-uv/commit/fc0acc2d6f3ebbe375e86ac365172fe5bcf926a4"><code>fc0acc2</code></a> Pin astral-sh/github-actions to 2026.11.16.0 (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1145">#1145</a>)</li> <li><a href="https://github.com/astral-sh/setup-uv/commit/17e0973e660f96e80ee1c1b479ad9464a56d346c"><code>17e0973</code></a> chore(deps): bump zizmorcore/zizmor-action from 0.6.4 to 0.7.1 (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1144">#1144</a>)</li> <li><a href="https://github.com/astral-sh/setup-uv/commit/963ce8fe9e4fb39553bd07a010f5e986c4dcff9d"><code>963ce8f</code></a> chore: update known checksums for 0.13.8 (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1131">#1131</a>)</li> <li><a href="https://github.com/astral-sh/setup-uv/commit/5e83ccf689000bf635d77af2cdbad36ca1397375"><code>5e83ccf</code></a> chore(deps): roll up Dependabot dependency updates (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1130">#1130</a>)</li> <li><a href="https://github.com/astral-sh/setup-uv/commit/898180d41d2947dacf2409060a43f19895a4c95a"><code>898180d</code></a> fix: resolve partial PEP 440 specifiers with PEP 440 semantics (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1128">#1128</a>)</li> <li><a href="https://github.com/astral-sh/setup-uv/commit/bd4d5efd86ffcc60e217645fd6b405a4d0d1ee13"><code>bd4d5ef</code></a> Fix workflow tests after ubuntu-latest switch to 26.04 (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1129">#1129</a>)</li> <li><a href="https://github.com/astral-sh/setup-uv/commit/0a73d6eb01c0201c8fc84847d0f4425b704ad66d"><code>0a73d6e</code></a> chore(deps): bump release-drafter/release-drafter from 7.7.0 to 7.9.0 (<a href="https://redirect.github.com/astral-sh/setup-uv/issues/1121">#1121</a>)</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/setup-uv/compare/1c37ad07a6a961277cf70c0d37d6f313000f5884...1db35dd8eee11c5894872e0b383ae6c406cf738d">compare view</a></li> </ul> </details> <br /> Updates `linear/linear-release-action` from 0.18.1 to 0.18.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/linear/linear-release-action/releases">linear/linear-release-action's releases</a>.</em></p> <blockquote> <h2>v0.18.2</h2> <h2>What's Changed</h2> <ul> <li>Use organization-wide security policy by <a href="https://github.com/itsmingjie"><code>@itsmingjie</code></a> in <a href="https://redirect.github.com/linear/linear-release-action/pull/75">linear/linear-release-action#75</a></li> <li>Prevent release metadata from injecting GitHub Actions outputs by <a href="https://github.com/axelniklasson"><code>@axelniklasson</code></a> in <a href="https://redirect.github.com/linear/linear-release-action/pull/76">linear/linear-release-action#76</a></li> <li>Release v0.18.2 by <a href="https://github.com/axelniklasson"><code>@axelniklasson</code></a> in <a href="https://redirect.github.com/linear/linear-release-action/pull/77">linear/linear-release-action#77</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/itsmingjie"><code>@itsmingjie</code></a> made their first contribution in <a href="https://redirect.github.com/linear/linear-release-action/pull/75">linear/linear-release-action#75</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/linear/linear-release-action/compare/v0.18.1...v0.18.2">https://github.com/linear/linear-release-action/compare/v0.18.1...v0.18.2</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/linear/linear-release-action/commit/dd4fc407f860b9460d2cf0b3fb1edd8985cf443f"><code>dd4fc40</code></a> Release v0.18.2 (<a href="https://redirect.github.com/linear/linear-release-action/issues/77">#77</a>)</li> <li><a href="https://github.com/linear/linear-release-action/commit/13f64cfb1f36b73aa24a921112b31a76cbcdf6f6"><code>13f64cf</code></a> Prevent release metadata from injecting GitHub Actions outputs (<a href="https://redirect.github.com/linear/linear-release-action/issues/76">#76</a>)</li> <li><a href="https://github.com/linear/linear-release-action/commit/5725135c745d81ea3731300a3e3bd86d47561e96"><code>5725135</code></a> Use organization-wide security policy (<a href="https://redirect.github.com/linear/linear-release-action/issues/75">#75</a>)</li> <li>See full diff in <a href="https://github.com/linear/linear-release-action/compare/30f9ae77461ec29f07fffe0c52edd1909bfbb6f5...dd4fc407f860b9460d2cf0b3fb1edd8985cf443f">compare view</a></li> </ul> </details> <br /> Updates `toshimaru/auto-author-assign` from 3.1.0 to 3.1.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/toshimaru/auto-author-assign/releases">toshimaru/auto-author-assign's releases</a>.</em></p> <blockquote> <h2>v3.1.1</h2> <h2><a href="https://github.com/toshimaru/auto-author-assign/compare/v3.1.0...v3.1.1">3.1.1</a> (2026-11-01)</h2> <!-- raw HTML omitted --> <h2>What's Changed</h2> <ul> <li>ci: Lock gh-action dependencies by <a href="https://github.com/toshimaru"><code>@toshimaru</code></a> in <a href="https://redirect.github.com/toshimaru/auto-author-assign/pull/213">toshimaru/auto-author-assign#213</a></li> </ul> <h3>Dependencies</h3> <ul> <li>build(deps-dev): bump rollup from 4.62.4 to 4.63.1 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/toshimaru/auto-author-assign/pull/195">toshimaru/auto-author-assign#195</a></li> <li>build(deps-dev): bump rollup from 4.63.1 to 4.64.1 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/toshimaru/auto-author-assign/pull/205">toshimaru/auto-author-assign#205</a></li> <li>build(deps): bump undici from 6.28.0 to 6.29.1 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/toshimaru/auto-author-assign/pull/210">toshimaru/auto-author-assign#210</a></li> <li>build(deps-dev): bump rollup from 4.64.1 to 4.65.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/toshimaru/auto-author-assign/pull/208">toshimaru/auto-author-assign#208</a></li> <li>build(deps-dev): bump rollup from 4.65.0 to 4.65.1 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/toshimaru/auto-author-assign/pull/212">toshimaru/auto-author-assign#212</a></li> <li>build(deps): ignore standalone Rollup Linux binary updates by <a href="https://github.com/toshimaru"><code>@toshimaru</code></a> in <a href="https://redirect.github.com/toshimaru/auto-author-assign/pull/211">toshimaru/auto-author-assign#211</a></li> </ul> <h3>Others</h3> <ul> <li>chore(main): release 3.1.1 by <a href="https://github.com/github-actions"><code>@github-actions</code></a>[bot] in <a href="https://redirect.github.com/toshimaru/auto-author-assign/pull/214">toshimaru/auto-author-assign#214</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/toshimaru/auto-author-assign/compare/v3.1.0...v3.1.1">https://github.com/toshimaru/auto-author-assign/compare/v3.1.0...v3.1.1</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/toshimaru/auto-author-assign/blob/main/CHANGELOG.md">toshimaru/auto-author-assign's changelog</a>.</em></p> <blockquote> <h1>Changelog</h1> <h2><a href="https://github.com/toshimaru/auto-author-assign/compare/v3.1.0...v3.1.1">3.1.1</a> (2026-11-01)</h2> <h3>Miscellaneous Chores</h3> <ul> <li>release 3.1.1 (<a href="https://github.com/toshimaru/auto-author-assign/commit/4b76b30e0c1a22289253a8ace44e3d97e7e586b6">4b76b30</a>)</li> </ul> <h2><a href="https://github.com/toshimaru/auto-author-assign/compare/v3.0.3...v3.1.0">3.1.0</a> (2026-08-12)</h2> <h3>Features</h3> <ul> <li>add support to skip users (see <a href="https://redirect.github.com/toshimaru/auto-author-assign/issues/185">#185</a> and <a href="https://redirect.github.com/toshimaru/auto-author-assign/issues/191">#191</a>) (<a href="https://github.com/toshimaru/auto-author-assign/commit/c323db629e2e295b2c8ebe87d47bb2c961ef87ae">c323db6</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li>parse skip-users as comma or newline-separated list (<a href="https://github.com/toshimaru/auto-author-assign/commit/9db2a78bf35000232ae3b800c3dd021300887393">9db2a78</a>)</li> </ul> <h2><a href="https://github.com/toshimaru/auto-author-assign/compare/v3.0.2...v3.0.3">3.0.3</a> (2026-06-15)</h2> <h3>Miscellaneous Chores</h3> <ul> <li>release 3.0.3 (<a href="https://github.com/toshimaru/auto-author-assign/commit/8f813140fc4dbdfcc4a43f89d97033b5988e3773">8f81314</a>)</li> </ul> <h2><a href="https://github.com/toshimaru/auto-author-assign/compare/v3.0.1...v3.0.2">3.0.2</a> (2026-04-27)</h2> <h3>Miscellaneous Chores</h3> <ul> <li>release 3.0.2 (<a href="https://github.com/toshimaru/auto-author-assign/commit/658b95bf703955e926268fcaca1124037270bea8">658b95b</a>)</li> <li>release 3.0.2 (<a href="https://github.com/toshimaru/auto-author-assign/commit/ca59fc3261247bab40337927fac848bf2a60863f">ca59fc3</a>)</li> </ul> <h2><a href="https://github.com/toshimaru/auto-author-assign/compare/v3.0.0...v3.0.1">3.0.1</a> (2025-12-25)</h2> <h3>Miscellaneous Chores</h3> <ul> <li>release 3.0.1 (<a href="https://github.com/toshimaru/auto-author-assign/commit/718d4ed5349747d47952ae841ae03fcbdd74ebea">718d4ed</a>)</li> </ul> <h2><a href="https://github.com/toshimaru/auto-author-assign/compare/v2.1.2...v3.0.0">3.0.0</a> (2025-12-21)</h2> <h3>Features</h3> <ul> <li>Add <code>npm run package</code> instead of <code>build</code> (<a href="https://redirect.github.com/toshimaru/auto-author-assign/issues/130">#130</a>) (<a href="https://github.com/toshimaru/auto-author-assign/commit/972720f0403d2873e807f16e350c5b0b1be4dda3">972720f</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/toshimaru/auto-author-assign/commit/415448809ea5ba0e171b251632720b009df3d8d6"><code>4154488</code></a> chore(main): release 3.1.1 (<a href="https://redirect.github.com/toshimaru/auto-author-assign/issues/214">#214</a>)</li> <li><a href="https://github.com/toshimaru/auto-author-assign/commit/4b76b30e0c1a22289253a8ace44e3d97e7e586b6"><code>4b76b30</code></a> chore: release 3.1.1</li> <li><a href="https://github.com/toshimaru/auto-author-assign/commit/b48d71e8202018ddbb92c763c7dc556908f2738b"><code>b48d71e</code></a> ci: Lock gh-action dependencies (<a href="https://redirect.github.com/toshimaru/auto-author-assign/issues/213">#213</a>)</li> <li><a href="https://github.com/toshimaru/auto-author-assign/commit/265eb9ea47f14aac2ec501d7e40da61b2428e48b"><code>265eb9e</code></a> build(deps-dev): bump rollup from 4.65.0 to 4.65.1 (<a href="https://redirect.github.com/toshimaru/auto-author-assign/issues/212">#212</a>)</li> <li><a href="https://github.com/toshimaru/auto-author-assign/commit/1de6e4712d694904783cd478ba01086d11eb1b34"><code>1de6e47</code></a> build(deps): ignore standalone Rollup Linux binary updates (<a href="https://redirect.github.com/toshimaru/auto-author-assign/issues/211">#211</a>)</li> <li><a href="https://github.com/toshimaru/auto-author-assign/commit/a698c510781167c2e2928763aca8b211c35f5f25"><code>a698c51</code></a> build(deps-dev): bump rollup from 4.64.1 to 4.65.0 (<a href="https://redirect.github.com/toshimaru/auto-author-assign/issues/208">#208</a>)</li> <li><a href="https://github.com/toshimaru/auto-author-assign/commit/5a9b6761f443ddf51c2a29b369c5ca0508751994"><code>5a9b676</code></a> build(deps): bump undici from 6.28.0 to 6.29.1 (<a href="https://redirect.github.com/toshimaru/auto-author-assign/issues/210">#210</a>)</li> <li><a href="https://github.com/toshimaru/auto-author-assign/commit/5287094cfc00243749d1a0d45e7b93cc56cc3feb"><code>5287094</code></a> build(deps-dev): bump rollup from 4.63.1 to 4.64.1 (<a href="https://redirect.github.com/toshimaru/auto-author-assign/issues/205">#205</a>)</li> <li><a href="https://github.com/toshimaru/auto-author-assign/commit/6777e6c2a2e817abbc19dabe9e1b749e01536a72"><code>6777e6c</code></a> build(deps-dev): bump rollup from 4.62.4 to 4.63.1 (<a href="https://redirect.github.com/toshimaru/auto-author-assign/issues/195">#195</a>)</li> <li>See full diff in <a href="https://github.com/toshimaru/auto-author-assign/compare/a78a94b219445cece8ccf0d45fec60af449f212a...415448809ea5ba0e171b251632720b009df3d8d6">compare view</a></li> </ul> </details> <br /> Updates `ossf/scorecard-action` from 2.5.0 to 2.6.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/ossf/scorecard-action/releases">ossf/scorecard-action's releases</a>.</em></p> <blockquote> <h2>v2.6.0</h2> <p>This release moves the action to Scorecard v5.7.0, built with Go 1.27.4. For changes to checks and results, and the security fixes in this Scorecard release, see the <a href="https://github.com/ossf/scorecard/releases/tag/v5.7.0">Scorecard v5.7.0 release notes</a>.</p> <h2>Getting started</h2> <p>This is the first release with ready-to-use workflows in this repository. To add Scorecard to a repository, copy one into <code>.github/workflows/scorecard.yml</code>:</p> <ul> <li><a href="https://github.com/ossf/scorecard-action/blob/main/examples/scorecard.yml"><code>examples/scorecard.yml</code></a> for public repositories. It publishes results to the Scorecard API, which enables the badge and the REST API, and fails the step if the API rejects them.</li> <li><a href="https://github.com/ossf/scorecard-action/blob/main/examples/scorecard-private.yml"><code>examples/scorecard-private.yml</code></a> for private repositories. It doesn't publish.</li> </ul> <p>Both pin every action to a full commit SHA, set <code>cache-mode: none</code>, and upload results even when an earlier step fails. CI lints them with zizmor, actionlint and yamllint. If your linter reports <code>cache-mode</code> as unknown, see <a href="https://github.com/ossf/scorecard-action#workflow-linters">Workflow Linters</a>.</p> <p>Copy the examples from <code>main</code>, which pins this release. A tagged commit can't pin its own SHA, so the copies at the <code>v2.6.0</code> tag still name v2.5.0.</p> <p>To add the workflow to many repositories at once, the installer opens a pull request in each one. See <a href="https://github.com/ossf/scorecard-action/blob/main/docs/installer.md"><code>docs/installer.md</code></a>.</p> <h2>What's Changed</h2> <ul> <li>New <code>fail_on_publish_error</code> input (default <code>false</code>): when set, the step fails if the Scorecard API rejects the results. Network errors and HTTP 408, 429 and 5xx stay warnings. New outputs <code>results_published</code> and <code>publication_status</code> report whether publishing worked, and the job summary says so. A rejected (4xx) publish is now sent once instead of three times, and the publish error and warning show as annotations. by <a href="https://github.com/justaugustus"><code>@justaugustus</code></a> in <a href="https://redirect.github.com/ossf/scorecard-action/pull/1721">ossf/scorecard-action#1721</a></li> <li>Example workflows for public and private repositories in <code>examples/</code>, with every action pinned to a full SHA. by <a href="https://github.com/justaugustus"><code>@justaugustus</code></a> in <a href="https://redirect.github.com/ossf/scorecard-action/pull/1722">ossf/scorecard-action#1722</a></li> <li>The examples set <code>cache-mode: none</code> and upload results even when an earlier step fails. The README's new Workflow Linters section lists which linter versions recognize <code>cache-mode</code>. by <a href="https://github.com/justaugustus"><code>@justaugustus</code></a> in <a href="https://redirect.github.com/ossf/scorecard-action/pull/1727">ossf/scorecard-action#1727</a></li> <li>The installer (<code>cmd/installer</code>) adds the generated example workflow with the repository's default branch, and no longer needs a starter-workflows checkout. Usage is in <code>docs/installer.md</code>. by <a href="https://github.com/justaugustus"><code>@justaugustus</code></a> in <a href="https://redirect.github.com/ossf/scorecard-action/pull/1728">ossf/scorecard-action#1728</a></li> </ul> <h3>Other</h3> <ul> <li>Point getting started at the v2.6.0 example workflows by <a href="https://github.com/justaugustus"><code>@justaugustus</code></a> in <a href="https://redirect.github.com/ossf/scorecard-action/pull/1750">ossf/scorecard-action#1750</a></li> <li>Lint the example workflows in CI by <a href="https://github.com/justaugustus"><code>@justaugustus</code></a> in <a href="https://redirect.github.com/ossf/scorecard-action/pull/1724">ossf/scorecard-action#1724</a></li> <li>Move CI to golangci-lint v2 by <a href="https://github.com/justaugustus"><code>@justaugustus</code></a> in <a href="https://redirect.github.com/ossf/scorecard-action/pull/1725">ossf/scorecard-action#1725</a></li> <li>Read <code>publish_results</code> into the options struct by <a href="https://github.com/arpitjain099"><code>@arpitjain099</code></a> in <a href="https://redirect.github.com/ossf/scorecard-action/pull/1731">ossf/scorecard-action#1731</a></li> <li>Bump Scorecard to main ahead of v5.7.0 by <a href="https://github.com/justaugustus"><code>@justaugustus</code></a> in <a href="https://redirect.github.com/ossf/scorecard-action/pull/1744">ossf/scorecard-action#1744</a></li> <li>Bump Scorecard to v5.7.0 by <a href="https://github.com/justaugustus"><code>@justaugustus</code></a> in <a href="https://redirect.github.com/ossf/scorecard-action/pull/1746">ossf/scorecard-action#1746</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/ossf/scorecard-action/compare/v2.5.0...v2.6.0">https://github.com/ossf/scorecard-action/compare/v2.5.0...v2.6.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/ossf/scorecard-action/commit/23f22cd43608bae7a1f1fa2603d7314dee9538a5"><code>23f22cd</code></a> 🌱 Bump action tag for v2.6.0 release (<a href="https://redirect.github.com/ossf/scorecard-action/issues/1749">#1749</a>)</li> <li><a href="https://github.com/ossf/scorecard-action/commit/9f58c4b147d93c196c685003421ceaccb20b3cca"><code>9f58c4b</code></a> 🌱 Bump the github-actions group across 2 directories with 8 updates ...</li> <li><a href="https://github.com/ossf/scorecard-action/commit/a591f5fb7d80b120d400391e23f321409b4076ec"><code>a591f5f</code></a> 🌱 Bump distroless/base (<a href="https://redirect.github.com/ossf/scorecard-action/issues/1745">#1745</a>)</li> <li><a href="https://github.com/ossf/scorecard-action/commit/c0591f84453160d264c0611724c74576b559f0f0"><code>c0591f8</code></a> Read <code>publish_results</code> into the options struct (<a href="https://redirect.github.com/ossf/scorecard-action/issues/1731">#1731</a>)</li> <li><a href="https://github.com/ossf/scorecard-action/commit/8e358b3126ddf0606f2dbbd329d899ea2f4d1057"><code>8e358b3</code></a> 🌱 Bump scorecard to v5.7.0 (<a href="https://redirect.github.com/ossf/scorecard-action/issues/1746">#1746</a>)</li> <li><a href="https://github.com/ossf/scorecard-action/commit/f0165b973754ee67012be27c6377332f37d70593"><code>f0165b9</code></a> 🌱 Bump github.com/go-chi/chi/v5 from 5.3.0 to 5.4.0 (<a href="https://redirect.github.com/ossf/scorecard-action/issues/1735">#1735</a>)</li> <li><a href="https://github.com/ossf/scorecard-action/commit/7a8b5105514aa13d235260d84fd6f86d7bd676fc"><code>7a8b510</code></a> 🌱 Bump scorecard to main ahead of v5.7.0 (<a href="https://redirect.github.com/ossf/scorecard-action/issues/1744">#1744</a>)</li> <li><a href="https://github.com/ossf/scorecard-action/commit/3e931c8cb6ae3ef28804a82c1e76ce290610138f"><code>3e931c8</code></a> 🌱 Bump the github-actions group across 1 directory with 7 updates (#...</li> <li><a href="https://github.com/ossf/scorecard-action/commit/365df9f035d4b5177b9cd57330f8c3dfa6134420"><code>365df9f</code></a> 🌱 Bump the github-actions group across 1 directory with 3 updates (#...</li> <li><a href="https://github.com/ossf/scorecard-action/commit/e04b7a8834a20c992877a013b009ffcb00692f56"><code>e04b7a8</code></a> ✨ Install the generated workflow from the installer (<a href="https://redirect.github.com/ossf/scorecard-action/issues/1728">#1728</a>)</li> <li>Additional commits viewable in <a href="https://github.com/ossf/scorecard-action/compare/fa7117db83c52d787ae5a89f350999701505d78e...23f22cd43608bae7a1f1fa2603d7314dee9538a5">compare view</a></li> </ul> </details> <br /> Updates `github/codeql-action/upload-sarif` from 4.39.0 to 4.39.4 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/github/codeql-action/releases">github/codeql-action/upload-sarif's releases</a>.</em></p> <blockquote> <h2>v4.39.4</h2> <ul> <li>Update default CodeQL bundle version to <a href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.27.5">2.27.5</a>. <a href="https://redirect.github.com/github/codeql-action/pull/4333">#4333</a></li> </ul> <h2>v4.39.3</h2> <ul> <li>Fixed diff-informed alert filtering incorrectly removing alerts in changed files whose paths contain spaces, special characters, or non-ASCII characters. <a href="https://redirect.github.com/github/codeql-action/pull/4283">#4283</a></li> </ul> <h2>v4.39.2</h2> <ul> <li>Update default CodeQL bundle version to <a href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.27.4">2.27.4</a>. <a href="https://redirect.github.com/github/codeql-action/pull/4284">#4284</a></li> <li><em>Upcoming breaking change</em>: CodeQL version 2.22.3 and earlier were discontinued on 16 October 2026 alongside GitHub Enterprise Server 3.18, and will be unsupported by the next minor release of the CodeQL Action. Added a deprecation warning for customers using these versions of CodeQL. <a href="https://redirect.github.com/github/codeql-action/pull/4266">#4266</a></li> <li>Starting with macOS 27 and Xcode 27, traced analyses are unsupported. See <a href="https://github.blog/changelog/2026-10-19-codeql-changes-for-macos-27-xcode-27-and-swift-6-4/">this blog post for more information</a>. The CodeQL Action will now try to identify if a workflow is about to perform a traced analysis on version 27 or above of macOS or Xcode. If so, the CodeQL Action will emit a corresponding warning that will also be visible on the <a href="https://docs.github.com/en/code-security/how-tos/find-and-fix-code-vulnerabilities/manage-your-configuration/use-the-tools-status-page-for-code-scanning">Tool Status Page</a>. This check will be rolled out following this release of the CodeQL Action. <a href="https://redirect.github.com/github/codeql-action/pull/4221">#4221</a></li> <li>The undocumented TRAP cache cleanup feature that could be enabled using the <code>CODEQ... _Description has been truncated_ Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1206 lines
53 KiB
YAML
1206 lines
53 KiB
YAML
# GitHub release workflow.
|
|
name: Release
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
release_channel:
|
|
type: choice
|
|
description: Release channel
|
|
options:
|
|
- mainline
|
|
- stable
|
|
- rc
|
|
release_notes:
|
|
description: Release notes for the publishing the release. This is required to create a release.
|
|
version:
|
|
description: >-
|
|
Version to release, e.g. v2.39.2 or v2.40.0-rc.0. Required unless dry-run. Run the workflow on
|
|
release/X.Y (or main for an RC); the approved release job creates the annotated tag at the
|
|
workflow's commit with the release App, since only the App may create tags.
|
|
type: string
|
|
required: false
|
|
commit:
|
|
description: >-
|
|
Full SHA of the commit to tag and release. Required unless dry-run. It must already be on the
|
|
branch the workflow runs on (so it was reviewed), and pins the release to that commit even if
|
|
the branch moves. scripts/release.sh fills this in.
|
|
type: string
|
|
required: false
|
|
dry_run:
|
|
description: Perform a dry-run release (devel). No tag is created.
|
|
type: boolean
|
|
required: true
|
|
default: false
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
env:
|
|
# Use `inputs` (vs `github.event.inputs`) to ensure that booleans are actual
|
|
# booleans, not strings.
|
|
# https://github.blog/changelog/2022-06-10-github-actions-inputs-unified-across-manual-and-reusable-workflows/
|
|
CODER_RELEASE: ${{ !inputs.dry_run }}
|
|
CODER_DRY_RUN: ${{ inputs.dry_run }}
|
|
CODER_RELEASE_CHANNEL: ${{ inputs.release_channel }}
|
|
CODER_RELEASE_NOTES: ${{ inputs.release_notes }}
|
|
|
|
jobs:
|
|
release:
|
|
name: Build and publish
|
|
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
|
|
# Gates access to the signing secrets and identities. The release-signer
|
|
# identity provider only exchanges tokens for this workflow when it is
|
|
# dispatched on main or release/* in this environment.
|
|
environment: release
|
|
permissions:
|
|
# Required to publish a release
|
|
contents: write
|
|
# Pushes images and charts to the ghcr.io/coder/*-staging packages only;
|
|
# coder/ghcr-publisher alone can write the public ones.
|
|
packages: write
|
|
# Necessary for GCP authentication (https://github.com/google-github-actions/setup-gcloud#usage)
|
|
# Also necessary for keyless cosign (https://docs.sigstore.dev/cosign/signing/overview/)
|
|
# And for GitHub Actions attestation
|
|
id-token: write
|
|
# Required for GitHub Actions attestation
|
|
attestations: write
|
|
env:
|
|
# Necessary for Docker manifest
|
|
DOCKER_CLI_EXPERIMENTAL: "enabled"
|
|
outputs:
|
|
version: ${{ steps.version.outputs.version }}
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@aebdcf6156ab6691adf63218240e476564a1ed4c # v2.23.0
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
# Check out the dispatched commit first so the step below runs from reviewed workflow
|
|
# content before any file from the commit input's tree.
|
|
ref: ${{ github.sha }}
|
|
|
|
# Every later step runs files from the working tree with release credentials, dry run or not,
|
|
# so the commit input must be proven to be on the dispatched branch before it is checked out.
|
|
- name: Check out the commit being released
|
|
if: ${{ inputs.commit != '' }}
|
|
env:
|
|
COMMIT: ${{ inputs.commit }}
|
|
run: |
|
|
set -euo pipefail
|
|
|
|
if [[ ! "${COMMIT}" =~ ^[0-9a-f]{40}$ ]]; then
|
|
echo "::error::commit must be a full 40-character SHA, got '${COMMIT}'"
|
|
exit 1
|
|
fi
|
|
if ! git merge-base --is-ancestor "${COMMIT}" "${GITHUB_SHA}"; then
|
|
echo "::error::${COMMIT} is not on ${GITHUB_REF}"
|
|
exit 1
|
|
fi
|
|
git checkout --quiet --detach "${COMMIT}"
|
|
|
|
# Only the release App may create tags (ruleset "Release tags (App only)"), and this job only
|
|
# runs after a release manager other than the dispatcher approves the `release` environment.
|
|
# So the tag is created here, at the commit being released, instead of being pushed by a person
|
|
# beforehand.
|
|
- name: Generate release App token for tagging
|
|
id: tag_app_token
|
|
if: ${{ !inputs.dry_run }}
|
|
# The App's key is a non-exportable Cloud KMS key; only this workflow, in this environment,
|
|
# may sign with it.
|
|
uses: coder/github-app-token-action@00eaec58ee1bfea9c8b48655b7ab7470b07739e5 # main 2026-11-17
|
|
with:
|
|
client-id: ${{ secrets.RELEASE_APP_ID }}
|
|
kms-key: ${{ secrets.RELEASE_APP_KMS_KEY }}
|
|
workload-identity-provider: ${{ secrets.APP_KEYS_WORKLOAD_ID_PROVIDER }}
|
|
owner: coder
|
|
repositories: coder
|
|
permissions: |
|
|
contents: write
|
|
workflows: write
|
|
# Revoked by "Revoke the tagging token" right after the tag exists, rather than at
|
|
# the end of the job, since everything in between runs code from the release commit.
|
|
skip-token-revoke: true
|
|
|
|
- name: Create release tag
|
|
if: ${{ !inputs.dry_run }}
|
|
env:
|
|
GH_TOKEN: ${{ steps.tag_app_token.outputs.token }}
|
|
VERSION: ${{ inputs.version }}
|
|
COMMIT: ${{ inputs.commit }}
|
|
run: |
|
|
set -euo pipefail
|
|
|
|
if [[ ! "${VERSION}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-rc\.[0-9]+)?$ ]]; then
|
|
echo "::error::version must look like v2.39.2 or v2.40.0-rc.0, got '${VERSION}'"
|
|
exit 1
|
|
fi
|
|
if [[ ! "${COMMIT}" =~ ^[0-9a-f]{40}$ ]]; then
|
|
echo "::error::commit must be a full 40-character SHA, got '${COMMIT}'"
|
|
exit 1
|
|
fi
|
|
# The commit must already be on the dispatched branch, i.e. reviewed.
|
|
if ! git merge-base --is-ancestor "${COMMIT}" "${GITHUB_SHA}"; then
|
|
echo "::error::${COMMIT} is not on ${GITHUB_REF}"
|
|
exit 1
|
|
fi
|
|
|
|
# Non-RC releases must run on their release/X.Y branch; RCs on main or release/X.Y.
|
|
base_version="${VERSION#v}"
|
|
base_version="${base_version%%-*}"
|
|
release_branch="release/${base_version%.*}"
|
|
if [[ "${VERSION}" == *-rc.* ]]; then
|
|
allowed=("refs/heads/main" "refs/heads/${release_branch}")
|
|
else
|
|
allowed=("refs/heads/${release_branch}")
|
|
fi
|
|
if [[ ! " ${allowed[*]} " == *" ${GITHUB_REF} "* ]]; then
|
|
echo "::error::${VERSION} must be released from ${allowed[*]}, not ${GITHUB_REF}"
|
|
exit 1
|
|
fi
|
|
|
|
# Re-running a release whose tag already exists is fine, as long as it is this commit.
|
|
if existing="$(gh api "repos/${GITHUB_REPOSITORY}/git/ref/tags/${VERSION}" --jq .object.sha 2>/dev/null)"; then
|
|
target="$(gh api "repos/${GITHUB_REPOSITORY}/git/tags/${existing}" --jq .object.sha 2>/dev/null || echo "${existing}")"
|
|
if [[ "${target}" != "${COMMIT}" ]]; then
|
|
echo "::error::tag ${VERSION} already exists at ${target}, not ${COMMIT}"
|
|
exit 1
|
|
fi
|
|
echo "Tag ${VERSION} already exists at ${COMMIT}."
|
|
exit 0
|
|
fi
|
|
|
|
# Each version needs its own commit: version.sh refuses a commit with two release tags, so
|
|
# tagging a commit that was already released would only fail the build and leave a stray tag.
|
|
released="$(git tag --points-at "${COMMIT}" --list 'v*' | paste -sd ' ' -)"
|
|
if [[ -n "${released}" ]]; then
|
|
echo "::error::${COMMIT} was already released as ${released}; merge a new commit to ${GITHUB_REF#refs/heads/} and release that"
|
|
exit 1
|
|
fi
|
|
|
|
tag_object="$(gh api "repos/${GITHUB_REPOSITORY}/git/tags" \
|
|
-f tag="${VERSION}" -f message="Release ${VERSION}" -f object="${COMMIT}" -f type=commit \
|
|
--jq .sha)"
|
|
gh api "repos/${GITHUB_REPOSITORY}/git/refs" -f ref="refs/tags/${VERSION}" -f sha="${tag_object}" >/dev/null
|
|
echo "Created annotated tag ${VERSION} at ${COMMIT}."
|
|
|
|
- name: Revoke the tagging token
|
|
if: ${{ always() && steps.tag_app_token.outputs.token != '' }}
|
|
env:
|
|
GH_TOKEN: ${{ steps.tag_app_token.outputs.token }}
|
|
run: gh api -X DELETE installation/token || echo "::warning::could not revoke the tagging token; it expires within an hour"
|
|
|
|
# actions/checkout fetches tags as lightweight tags
|
|
# (https://github.com/actions/checkout/issues/290); refetch so the annotated release tag, created
|
|
# above, is present for version.sh.
|
|
- name: Fetch git tags
|
|
run: git fetch --tags --force
|
|
|
|
- name: Print version
|
|
id: version
|
|
run: |
|
|
set -euo pipefail
|
|
version="$(./scripts/version.sh)"
|
|
echo "version=$version" >> "$GITHUB_OUTPUT"
|
|
# Speed up future version.sh calls.
|
|
echo "CODER_FORCE_VERSION=$version" >> "$GITHUB_ENV"
|
|
echo "$version"
|
|
|
|
# Verify that all expectations for a release are met.
|
|
- name: Verify release input
|
|
if: ${{ !inputs.dry_run }}
|
|
env:
|
|
INPUT_VERSION: ${{ inputs.version }}
|
|
run: |
|
|
set -euo pipefail
|
|
|
|
version="$(./scripts/version.sh)"
|
|
if [[ "v${version}" != "${INPUT_VERSION}" ]]; then
|
|
echo "Version from the tag (${version}) does not match the version input (${INPUT_VERSION})."
|
|
exit 1
|
|
fi
|
|
|
|
# Derive the release branch from the version tag.
|
|
# Non-RC releases must be on a release/X.Y branch.
|
|
# RC tags are allowed on any branch (typically main).
|
|
version="$(./scripts/version.sh)"
|
|
# Strip any pre-release suffix first (e.g. 2.32.0-rc.0 -> 2.32.0)
|
|
base_version="${version%%-*}"
|
|
# Then strip patch to get major.minor (e.g. 2.32.0 -> 2.32)
|
|
release_branch="release/${base_version%.*}"
|
|
|
|
if [[ "$version" == *-rc.* ]]; then
|
|
echo "RC release detected, skipping release branch check (RC tags are cut from main)."
|
|
else
|
|
branch_contains_tag=$(git branch --remotes --contains "refs/tags/${INPUT_VERSION}" --list "*/${release_branch}" --format='%(refname)')
|
|
if [[ -z "${branch_contains_tag}" ]]; then
|
|
echo "Ref tag must exist in a branch named ${release_branch} when creating a non-RC release, did you use scripts/release.sh?"
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
if [[ -z "${CODER_RELEASE_NOTES}" ]]; then
|
|
echo "Release notes are required to create a release, did you use scripts/release.sh?"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Release inputs verified:"
|
|
echo
|
|
echo "- Ref: ${GITHUB_REF} (tag ${INPUT_VERSION})"
|
|
echo "- Version: ${version}"
|
|
echo "- Release channel: ${CODER_RELEASE_CHANNEL}"
|
|
echo "- Release branch: ${release_branch}"
|
|
echo "- Release notes: true"
|
|
|
|
- name: Create release notes file
|
|
run: |
|
|
set -euo pipefail
|
|
|
|
release_notes_file="$(mktemp -t release_notes.XXXXXX)"
|
|
echo "$CODER_RELEASE_NOTES" > "$release_notes_file"
|
|
echo CODER_RELEASE_NOTES_FILE="$release_notes_file" >> "$GITHUB_ENV"
|
|
|
|
- name: Show release notes
|
|
run: |
|
|
set -euo pipefail
|
|
cat "$CODER_RELEASE_NOTES_FILE"
|
|
|
|
- name: Docker Login
|
|
uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
# Shared with build.yaml so main builds and releases are signed the same
|
|
# way. Signing material is deleted before the action returns. Dry runs
|
|
# sign too, so they exercise the signing path; they only build commits
|
|
# already on the dispatched branch (checked after checkout above).
|
|
- name: Build and sign binaries
|
|
id: build
|
|
uses: ./.github/actions/build-coder
|
|
with:
|
|
sign: "true"
|
|
notarize: "true"
|
|
extra-tools: "helm cosign syft"
|
|
apt-packages: nsis
|
|
targets: >-
|
|
build/coder_@VERSION@_linux_amd64.tar.gz
|
|
build/coder_@VERSION@_linux_armv7.tar.gz
|
|
build/coder_@VERSION@_linux_arm64.tar.gz
|
|
build/coder_@VERSION@_linux_amd64.apk
|
|
build/coder_@VERSION@_linux_armv7.apk
|
|
build/coder_@VERSION@_linux_arm64.apk
|
|
build/coder_@VERSION@_linux_amd64.deb
|
|
build/coder_@VERSION@_linux_armv7.deb
|
|
build/coder_@VERSION@_linux_arm64.deb
|
|
build/coder_@VERSION@_linux_amd64.rpm
|
|
build/coder_@VERSION@_linux_armv7.rpm
|
|
build/coder_@VERSION@_linux_arm64.rpm
|
|
build/coder_@VERSION@_darwin_amd64.zip
|
|
build/coder_@VERSION@_darwin_arm64.zip
|
|
build/coder_@VERSION@_windows_amd64.zip
|
|
build/coder_@VERSION@_windows_arm64.zip
|
|
build/coder_@VERSION@_windows_amd64_installer.exe
|
|
build/coder_helm_@VERSION@.tgz
|
|
build/provisioner_helm_@VERSION@.tgz
|
|
build/ai-gateway_helm_@VERSION@.tgz
|
|
ev-workload-identity-provider: ${{ vars.GCP_CODE_SIGNING_WORKLOAD_ID_PROVIDER }}
|
|
ev-service-account: ${{ vars.GCP_CODE_SIGNING_SERVICE_ACCOUNT }}
|
|
ev-key: ${{ secrets.EV_KEY }}
|
|
ev-keystore: ${{ secrets.EV_KEYSTORE }}
|
|
ev-tsa-url: ${{ secrets.EV_TSA_URL }}
|
|
ev-signing-cert: ${{ secrets.EV_SIGNING_CERT }}
|
|
release-signer-workload-identity-provider: ${{ secrets.GPG_KMS_WORKLOAD_ID_PROVIDER }}
|
|
release-signer-service-account: ${{ secrets.GPG_KMS_SERVICE_ACCOUNT }}
|
|
gpg-release-key: ${{ secrets.GPG_RELEASE_KEY_BASE64 }}
|
|
gpg-kms-key: ${{ secrets.GPG_KMS_KEY }}
|
|
ac-certificate-pem: ${{ secrets.AC_CERTIFICATE_PEM }}
|
|
ac-kms-key-ring: ${{ secrets.AC_KMS_KEY_RING }}
|
|
ac-kms-key: ${{ secrets.AC_KMS_KEY }}
|
|
ac-apikey-issuer-id: ${{ secrets.AC_APIKEY_ISSUER_ID }}
|
|
ac-apikey-id: ${{ secrets.AC_APIKEY_ID }}
|
|
ac-apikey-p8-base64: ${{ secrets.AC_APIKEY_P8_BASE64 }}
|
|
|
|
- name: Test migrations from current ref to main
|
|
run: |
|
|
POSTGRES_VERSION=13 make test-migrations
|
|
|
|
- name: Determine base image tag
|
|
id: image-base-tag
|
|
run: |
|
|
set -euo pipefail
|
|
if [[ "${CODER_RELEASE:-}" != *t* ]] || [[ "${CODER_DRY_RUN:-}" == *t* ]]; then
|
|
# Empty value means use the default and avoid building a fresh one.
|
|
echo "tag=" >> "$GITHUB_OUTPUT"
|
|
else
|
|
# Releases push to the staging package; coder/ghcr-publisher copies
|
|
# the attested digest to ghcr.io/coder/coder-base (see "Promote").
|
|
echo "tag=$(CODER_IMAGE_BASE=ghcr.io/coder/coder-base-staging ./scripts/image_tag.sh)" >> "$GITHUB_OUTPUT"
|
|
fi
|
|
|
|
# Dockerfile.base only needs the Terraform checksum file from the repo.
|
|
- name: Create base-build-context directory
|
|
if: steps.image-base-tag.outputs.tag != ''
|
|
run: |
|
|
mkdir base-build-context
|
|
cp provisioner/terraform/terraform_SHA256SUMS base-build-context/
|
|
|
|
- name: Install depot.dev CLI
|
|
if: steps.image-base-tag.outputs.tag != ''
|
|
uses: depot/setup-action@91bc8495a33ebfc504ffc89e5674379ccf23c29c # v1.7.2
|
|
|
|
# This uses OIDC authentication, so no auth variables are required.
|
|
- name: Build base Docker image via depot.dev
|
|
id: build_base_image
|
|
if: steps.image-base-tag.outputs.tag != ''
|
|
uses: depot/build-push-action@0f27be7c41d76663a98518dfe68f1c46582242c4 # v1.19.0
|
|
with:
|
|
project: wl5hnrrkns
|
|
context: base-build-context
|
|
file: scripts/Dockerfile.base
|
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
|
provenance: true
|
|
sbom: true
|
|
pull: true
|
|
no-cache: true
|
|
push: true
|
|
tags: |
|
|
${{ steps.image-base-tag.outputs.tag }}
|
|
|
|
- name: Verify that images are pushed properly
|
|
if: steps.image-base-tag.outputs.tag != ''
|
|
run: |
|
|
# retry 10 times with a 5 second delay as the images may not be
|
|
# available immediately
|
|
for i in {1..10}; do
|
|
rc=0
|
|
raw_manifests=$(docker buildx imagetools inspect --raw "${IMAGE_TAG}") || rc=$?
|
|
if [[ "$rc" -eq 0 ]]; then
|
|
break
|
|
fi
|
|
if [[ "$i" -eq 10 ]]; then
|
|
echo "Failed to pull manifests after 10 retries"
|
|
exit 1
|
|
fi
|
|
echo "Failed to pull manifests, retrying in 5 seconds"
|
|
sleep 5
|
|
done
|
|
|
|
manifests=$(
|
|
echo "$raw_manifests" | \
|
|
jq -r '.manifests[].platform | .os + "/" + .architecture + (if .variant then "/" + .variant else "" end)'
|
|
)
|
|
|
|
# Verify all 3 platforms are present.
|
|
set -euxo pipefail
|
|
echo "$manifests" | grep -q linux/amd64
|
|
echo "$manifests" | grep -q linux/arm64
|
|
echo "$manifests" | grep -q linux/arm/v7
|
|
env:
|
|
# By digest: the staging tag can be moved by anyone who can write staging.
|
|
IMAGE_TAG: ghcr.io/coder/coder-base-staging@${{ steps.build_base_image.outputs.digest }}
|
|
|
|
- name: GitHub Attestation for Base Docker image
|
|
id: attest_base
|
|
if: ${{ !inputs.dry_run && steps.build_base_image.outputs.digest != '' }}
|
|
continue-on-error: true
|
|
uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2
|
|
with:
|
|
subject-name: ghcr.io/coder/coder-base-staging
|
|
subject-digest: ${{ steps.build_base_image.outputs.digest }}
|
|
push-to-registry: true
|
|
|
|
- name: Build Linux Docker images
|
|
id: build_docker
|
|
run: |
|
|
set -euxo pipefail
|
|
|
|
# we can't build multi-arch if the images aren't pushed, so quit now
|
|
# if dry-running
|
|
if [[ "$CODER_RELEASE" != *t* ]]; then
|
|
echo Skipping multi-arch docker builds due to dry-run.
|
|
exit 0
|
|
fi
|
|
|
|
# build Docker images for each architecture
|
|
version="$(./scripts/version.sh)"
|
|
if [[ -z "${CODER_BASE_IMAGE_TAG:-}" ]]; then
|
|
make build/coder_"$version"_linux_{amd64,arm64,armv7}.tag
|
|
else
|
|
# The base image is a multi-arch index. Build each architecture
|
|
# on its own manifest from that index.
|
|
base_index="$(docker buildx imagetools inspect --raw "$CODER_BASE_IMAGE_TAG")"
|
|
for arch in amd64 arm64 armv7; do
|
|
case "$arch" in
|
|
armv7) platform="linux/arm/v7" ;;
|
|
*) platform="linux/${arch}" ;;
|
|
esac
|
|
base_digest="$(
|
|
jq -r --arg platform "$platform" \
|
|
'.manifests[] | select((.platform | .os + "/" + .architecture + (if .variant then "/" + .variant else "" end)) == $platform) | .digest' \
|
|
<<<"$base_index"
|
|
)"
|
|
if [[ ! "$base_digest" =~ ^sha256:[0-9a-f]{64}$ ]]; then
|
|
echo "::error::expected one ${platform} manifest in ${CODER_BASE_IMAGE_TAG}, got '${base_digest}'"
|
|
exit 1
|
|
fi
|
|
CODER_BASE_IMAGE_TAG="${CODER_BASE_IMAGE_TAG%@*}@${base_digest}" \
|
|
make build/coder_"$version"_linux_"$arch".tag
|
|
done
|
|
fi
|
|
|
|
# Anyone who can write the staging package can move its tags, so
|
|
# every digest below comes from the registry's response to our own
|
|
# push, and the multi-arch index is built from those digests. No
|
|
# staging tag is ever read back.
|
|
refs=()
|
|
for arch in amd64 arm64 armv7; do
|
|
image_tag="$(cat "build/coder_${version}_linux_${arch}.tag")"
|
|
push_output="$(docker push "$image_tag")"
|
|
echo "$push_output"
|
|
digest="$(sed -nE 's/^.*: digest: (sha256:[0-9a-f]{64}) size: [0-9]+$/\1/p' <<<"$push_output" | tail -n1)"
|
|
if [[ -z "$digest" ]]; then
|
|
echo "::error::docker push printed no digest for ${image_tag}"
|
|
exit 1
|
|
fi
|
|
refs+=("${CODER_IMAGE_BASE}@${digest}")
|
|
done
|
|
|
|
multiarch_image="$(./scripts/image_tag.sh)"
|
|
docker manifest create --amend "$multiarch_image" "${refs[@]}"
|
|
push_output="$(docker manifest push "$multiarch_image")"
|
|
echo "$push_output"
|
|
multiarch_digest="$(grep -oE '^sha256:[0-9a-f]{64}$' <<<"$push_output" | tail -n1)"
|
|
if [[ -z "$multiarch_digest" ]]; then
|
|
echo "::error::docker manifest push printed no digest for ${multiarch_image}"
|
|
exit 1
|
|
fi
|
|
{
|
|
echo "multiarch_image=${multiarch_image}"
|
|
echo "multiarch_digest=${multiarch_digest}"
|
|
echo "multiarch_ref=${CODER_IMAGE_BASE}@${multiarch_digest}"
|
|
} >> "$GITHUB_OUTPUT"
|
|
|
|
# For debugging, print all docker image tags
|
|
docker images
|
|
|
|
# ghcr.io/coder/coder:latest is moved by coder/ghcr-publisher when it
|
|
# promotes the highest stable version.
|
|
env:
|
|
# Releases push to the staging package; coder/ghcr-publisher copies
|
|
# the attested digest to ghcr.io/coder/coder (see "Promote").
|
|
CODER_IMAGE_BASE: ghcr.io/coder/coder-staging
|
|
# Build on the base image just built, by digest, so nothing can swap
|
|
# the tag in between. Empty (no fresh base) falls back to the default.
|
|
CODER_BASE_IMAGE_TAG: ${{ steps.build_base_image.outputs.digest != '' && format('ghcr.io/coder/coder-base-staging@{0}', steps.build_base_image.outputs.digest) || '' }}
|
|
|
|
- name: SBOM Generation and Attestation
|
|
if: ${{ !inputs.dry_run }}
|
|
env:
|
|
COSIGN_EXPERIMENTAL: '1'
|
|
# By digest (see "Build Linux Docker images").
|
|
MULTIARCH_REF: ${{ steps.build_docker.outputs.multiarch_ref }}
|
|
VERSION: ${{ steps.version.outputs.version }}
|
|
run: |
|
|
set -euxo pipefail
|
|
|
|
# Generate SBOM for multi-arch image with version in filename
|
|
echo "Generating SBOM for multi-arch image: ${MULTIARCH_REF}"
|
|
syft "${MULTIARCH_REF}" -o spdx-json > "coder_${VERSION}_sbom.spdx.json"
|
|
|
|
# The attestation is stored next to the image digest; coder/ghcr-publisher
|
|
# copies it to ghcr.io/coder/coder along with the image.
|
|
echo "Attesting SBOM to multi-arch image: ${MULTIARCH_REF}"
|
|
cosign clean --force=true "${MULTIARCH_REF}"
|
|
cosign attest --type spdxjson \
|
|
--predicate "coder_${VERSION}_sbom.spdx.json" \
|
|
--yes \
|
|
"${MULTIARCH_REF}"
|
|
|
|
- name: GitHub Attestation for Docker image
|
|
id: attest_main
|
|
if: ${{ !inputs.dry_run }}
|
|
continue-on-error: true
|
|
uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2
|
|
with:
|
|
subject-name: ghcr.io/coder/coder-staging
|
|
subject-digest: ${{ steps.build_docker.outputs.multiarch_digest }}
|
|
push-to-registry: true
|
|
|
|
- name: GitHub Attestation for release binaries
|
|
id: attest_binaries
|
|
if: ${{ !inputs.dry_run }}
|
|
continue-on-error: true
|
|
uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2
|
|
with:
|
|
subject-path: |
|
|
./build/*.tar.gz
|
|
./build/*.zip
|
|
./build/*.deb
|
|
./build/*.rpm
|
|
./build/*.apk
|
|
./build/*_installer.exe
|
|
./build/*_helm_*.tgz
|
|
./build/provisioner_helm_*.tgz
|
|
|
|
# Report attestation failures but don't fail the workflow
|
|
- name: Check attestation status
|
|
if: ${{ !inputs.dry_run }}
|
|
run: | # zizmor: ignore[template-injection] We're just reading steps.attest_x.outcome here, no risk of injection
|
|
if [[ "${{ steps.attest_base.outcome }}" == "failure" && "${{ steps.attest_base.conclusion }}" != "skipped" ]]; then
|
|
echo "::warning::GitHub attestation for base image failed"
|
|
fi
|
|
if [[ "${{ steps.attest_main.outcome }}" == "failure" ]]; then
|
|
echo "::warning::GitHub attestation for main image failed"
|
|
fi
|
|
if [[ "${{ steps.attest_binaries.outcome }}" == "failure" && "${{ steps.attest_binaries.conclusion }}" != "skipped" ]]; then
|
|
echo "::warning::GitHub attestation for release binaries failed"
|
|
fi
|
|
|
|
# The OCI charts go to staging like the images; coder/ghcr-publisher
|
|
# copies them to oci://ghcr.io/coder/chart. The digests come from helm's
|
|
# response to the push, never from a staging tag.
|
|
- name: Push Helm charts to staging
|
|
id: chart_digests
|
|
if: ${{ !inputs.dry_run }}
|
|
run: |
|
|
set -euo pipefail
|
|
version="$(./scripts/version.sh)"
|
|
for chart in coder provisioner ai-gateway; do
|
|
out="$(helm push "build/${chart}_helm_${version}.tgz" oci://ghcr.io/coder/chart-staging 2>&1)"
|
|
echo "$out"
|
|
digest="$(sed -nE 's/^Digest: (sha256:[0-9a-f]{64})$/\1/p' <<<"$out")"
|
|
if [[ -z "$digest" ]]; then
|
|
echo "::error::helm push of ${chart} printed no digest"
|
|
exit 1
|
|
fi
|
|
echo "${chart//-/_}=${digest}" >> "$GITHUB_OUTPUT"
|
|
done
|
|
|
|
# coder/ghcr-publisher promotes a staging digest only with a release
|
|
# attestation from this workflow stating the version, the commit and the
|
|
# public package it is for, so a digest can't be reused for another
|
|
# version or package. These must succeed.
|
|
- name: Release attestation predicates
|
|
id: release_predicates
|
|
if: ${{ !inputs.dry_run }}
|
|
env:
|
|
VERSION: ${{ steps.version.outputs.version }}
|
|
run: |
|
|
set -euo pipefail
|
|
commit="$(git rev-parse HEAD)"
|
|
tag_commit="$(git rev-list -n 1 "v${VERSION}")"
|
|
if [[ "$commit" != "$tag_commit" ]]; then
|
|
echo "::error::checked out ${commit}, but v${VERSION} points at ${tag_commit}"
|
|
exit 1
|
|
fi
|
|
for pair in \
|
|
coder=ghcr.io/coder/coder \
|
|
coder_base=ghcr.io/coder/coder-base \
|
|
chart_coder=ghcr.io/coder/chart/coder \
|
|
chart_provisioner=ghcr.io/coder/chart/coder-provisioner \
|
|
chart_ai_gateway=ghcr.io/coder/chart/coder-ai-gateway; do
|
|
predicate="$(jq -nc --arg v "v${VERSION}" --arg c "$commit" --arg t "${pair#*=}" \
|
|
'{version: $v, commit: $c, target: $t}')"
|
|
echo "${pair%%=*}=${predicate}" >> "$GITHUB_OUTPUT"
|
|
done
|
|
|
|
- name: Release attestation for coder image
|
|
if: ${{ !inputs.dry_run }}
|
|
uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2
|
|
with:
|
|
subject-name: ghcr.io/coder/coder-staging
|
|
subject-digest: ${{ steps.build_docker.outputs.multiarch_digest }}
|
|
predicate-type: https://coder.com/attestations/release/v1
|
|
predicate: ${{ steps.release_predicates.outputs.coder }}
|
|
|
|
- name: Release attestation for coder-base image
|
|
if: ${{ !inputs.dry_run }}
|
|
uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2
|
|
with:
|
|
subject-name: ghcr.io/coder/coder-base-staging
|
|
subject-digest: ${{ steps.build_base_image.outputs.digest }}
|
|
predicate-type: https://coder.com/attestations/release/v1
|
|
predicate: ${{ steps.release_predicates.outputs.coder_base }}
|
|
|
|
- name: Release attestation for coder Helm chart
|
|
if: ${{ !inputs.dry_run }}
|
|
uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2
|
|
with:
|
|
subject-name: ghcr.io/coder/chart-staging/coder
|
|
subject-digest: ${{ steps.chart_digests.outputs.coder }}
|
|
predicate-type: https://coder.com/attestations/release/v1
|
|
predicate: ${{ steps.release_predicates.outputs.chart_coder }}
|
|
|
|
- name: Release attestation for coder-provisioner Helm chart
|
|
if: ${{ !inputs.dry_run }}
|
|
uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2
|
|
with:
|
|
subject-name: ghcr.io/coder/chart-staging/coder-provisioner
|
|
subject-digest: ${{ steps.chart_digests.outputs.provisioner }}
|
|
predicate-type: https://coder.com/attestations/release/v1
|
|
predicate: ${{ steps.release_predicates.outputs.chart_provisioner }}
|
|
|
|
- name: Release attestation for coder-ai-gateway Helm chart
|
|
if: ${{ !inputs.dry_run }}
|
|
uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2
|
|
with:
|
|
subject-name: ghcr.io/coder/chart-staging/coder-ai-gateway
|
|
subject-digest: ${{ steps.chart_digests.outputs.ai_gateway }}
|
|
predicate-type: https://coder.com/attestations/release/v1
|
|
predicate: ${{ steps.release_predicates.outputs.chart_ai_gateway }}
|
|
|
|
# Only coder/ghcr-publisher can write the public images and charts. It copies
|
|
# each staging digest after verifying its release attestation and that this
|
|
# run's `release` environment was approved. coder-ghcr-dispatch has only
|
|
# contents: write, on coder/ghcr-publisher only: enough for a
|
|
# repository_dispatch and nothing else. The token is revoked right after.
|
|
- name: Generate coder-ghcr-dispatch token
|
|
id: promote_app_token
|
|
if: ${{ !inputs.dry_run }}
|
|
uses: coder/github-app-token-action@00eaec58ee1bfea9c8b48655b7ab7470b07739e5 # main 2026-11-17
|
|
with:
|
|
client-id: ${{ secrets.CODER_GHCR_DISPATCH_APP_ID }}
|
|
kms-key: ${{ secrets.CODER_GHCR_DISPATCH_APP_KMS_KEY }}
|
|
workload-identity-provider: ${{ secrets.APP_KEYS_WORKLOAD_ID_PROVIDER }}
|
|
owner: coder
|
|
repositories: ghcr-publisher
|
|
permissions: |
|
|
contents: write
|
|
skip-token-revoke: true
|
|
|
|
- name: Promote images and charts
|
|
if: ${{ !inputs.dry_run }}
|
|
env:
|
|
GH_TOKEN: ${{ steps.promote_app_token.outputs.token }}
|
|
VERSION: ${{ steps.version.outputs.version }}
|
|
DIGEST_CODER: ${{ steps.build_docker.outputs.multiarch_digest }}
|
|
DIGEST_CODER_BASE: ${{ steps.build_base_image.outputs.digest }}
|
|
DIGEST_CHART_CODER: ${{ steps.chart_digests.outputs.coder }}
|
|
DIGEST_CHART_CODER_PROVISIONER: ${{ steps.chart_digests.outputs.provisioner }}
|
|
DIGEST_CHART_CODER_AI_GATEWAY: ${{ steps.chart_digests.outputs.ai_gateway }}
|
|
run: |
|
|
set -euo pipefail
|
|
|
|
# Anonymous reads: these packages are public.
|
|
remote_digest() {
|
|
local ref="$1" repo tag token
|
|
repo="${ref#ghcr.io/}"
|
|
tag="${repo##*:}"
|
|
repo="${repo%:*}"
|
|
token="$(curl -fsS "https://ghcr.io/token?scope=repository:${repo}:pull" | jq -r .token)"
|
|
curl -fsS -o /dev/null -D - -I \
|
|
-H "Authorization: Bearer ${token}" \
|
|
-H "Accept: application/vnd.oci.image.index.v1+json, application/vnd.oci.image.manifest.v1+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.docker.distribution.manifest.v2+json" \
|
|
"https://ghcr.io/v2/${repo}/manifests/${tag}" |
|
|
tr -d '\r' | awk -F': ' 'tolower($1) == "docker-content-digest" {print $2}'
|
|
}
|
|
|
|
declare -A expected=(
|
|
["ghcr.io/coder/coder:v${VERSION}"]="${DIGEST_CODER}"
|
|
["ghcr.io/coder/coder-base:v${VERSION}"]="${DIGEST_CODER_BASE}"
|
|
["ghcr.io/coder/chart/coder:${VERSION}"]="${DIGEST_CHART_CODER}"
|
|
["ghcr.io/coder/chart/coder-provisioner:${VERSION}"]="${DIGEST_CHART_CODER_PROVISIONER}"
|
|
["ghcr.io/coder/chart/coder-ai-gateway:${VERSION}"]="${DIGEST_CHART_CODER_AI_GATEWAY}"
|
|
)
|
|
for arch in amd64 arm64 armv7; do
|
|
expected["ghcr.io/coder/coder:v${VERSION}-${arch}"]=""
|
|
done
|
|
|
|
# A re-run of this job builds new digests. If an earlier attempt
|
|
# already promoted this version, the publisher keeps that build
|
|
# (after verifying it), so a tag that existed before the dispatch may
|
|
# stay where it was.
|
|
declare -A before=()
|
|
for ref in "${!expected[@]}"; do
|
|
if got="$(remote_digest "$ref" 2>/dev/null)" && [[ -n "$got" ]]; then
|
|
before["$ref"]="$got"
|
|
echo "${ref} already exists at ${got}"
|
|
fi
|
|
done
|
|
|
|
gh api repos/coder/ghcr-publisher/dispatches \
|
|
-f event_type=promote-coder \
|
|
-f "client_payload[version]=v${VERSION}" \
|
|
-f "client_payload[coder]=${DIGEST_CODER}" \
|
|
-f "client_payload[coder_base]=${DIGEST_CODER_BASE}" \
|
|
-f "client_payload[chart_coder]=${DIGEST_CHART_CODER}" \
|
|
-f "client_payload[chart_coder_provisioner]=${DIGEST_CHART_CODER_PROVISIONER}" \
|
|
-f "client_payload[chart_coder_ai_gateway]=${DIGEST_CHART_CODER_AI_GATEWAY}"
|
|
# Nothing else needs the token.
|
|
gh api -X DELETE installation/token || echo "::warning::could not revoke the promotion token; it expires within an hour"
|
|
unset GH_TOKEN
|
|
|
|
# The token couldn't read the publisher's runs anyway, so wait until
|
|
# every public tag serves the expected digest (or the one it already
|
|
# had). The arch tags are copied last.
|
|
deadline=$((SECONDS + 1800))
|
|
while true; do
|
|
pending=()
|
|
for ref in "${!expected[@]}"; do
|
|
if ! got="$(remote_digest "$ref" 2>/dev/null)" || [[ -z "$got" ]]; then
|
|
pending+=("$ref (missing)")
|
|
continue
|
|
fi
|
|
want="${expected[$ref]}"
|
|
if [[ -n "$want" && "$got" != "$want" && "$got" != "${before[$ref]:-}" ]]; then
|
|
echo "::error::${ref} is ${got}, expected ${want}"
|
|
exit 1
|
|
fi
|
|
done
|
|
if [[ ${#pending[@]} -eq 0 ]]; then
|
|
echo "All images and charts are promoted."
|
|
break
|
|
fi
|
|
if ((SECONDS > deadline)); then
|
|
printf '::error::Promotion did not finish in 30 minutes; still waiting for:\n' >&2
|
|
printf ' %s\n' "${pending[@]}" >&2
|
|
echo "::error::Check the latest run of https://github.com/coder/ghcr-publisher/actions/workflows/promote-coder.yaml"
|
|
exit 1
|
|
fi
|
|
sleep 20
|
|
done
|
|
|
|
- name: Generate offline docs
|
|
run: |
|
|
version="$(./scripts/version.sh)"
|
|
make -j build/coder_docs_"$version".tgz
|
|
|
|
- name: ls build
|
|
run: ls -lh build
|
|
|
|
- name: Authenticate to Google Cloud (release artifacts)
|
|
uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # v3.0.0
|
|
with:
|
|
workload_identity_provider: ${{ vars.GCP_RELEASE_ARTIFACTS_WORKLOAD_ID_PROVIDER }}
|
|
service_account: ${{ vars.GCP_RELEASE_ARTIFACTS_SERVICE_ACCOUNT }}
|
|
|
|
- name: Publish Coder CLI binaries and detached signatures to GCS
|
|
if: ${{ !inputs.dry_run }}
|
|
run: |
|
|
set -euxo pipefail
|
|
|
|
version="$(./scripts/version.sh)"
|
|
|
|
# Source array of slim binaries
|
|
declare -A binaries
|
|
binaries["coder-darwin-amd64"]="coder-slim_${version}_darwin_amd64"
|
|
binaries["coder-darwin-arm64"]="coder-slim_${version}_darwin_arm64"
|
|
binaries["coder-linux-amd64"]="coder-slim_${version}_linux_amd64"
|
|
binaries["coder-linux-arm64"]="coder-slim_${version}_linux_arm64"
|
|
binaries["coder-linux-armv7"]="coder-slim_${version}_linux_armv7"
|
|
binaries["coder-windows-amd64.exe"]="coder-slim_${version}_windows_amd64.exe"
|
|
binaries["coder-windows-arm64.exe"]="coder-slim_${version}_windows_arm64.exe"
|
|
|
|
for cli_name in "${!binaries[@]}"; do
|
|
slim_binary="${binaries[$cli_name]}"
|
|
detached_signature="${slim_binary}.asc"
|
|
gcloud storage cp "./build/${slim_binary}" "gs://releases.coder.com/coder-cli/${version}/${cli_name}"
|
|
gcloud storage cp "./build/${detached_signature}" "gs://releases.coder.com/coder-cli/${version}/${cli_name}.asc"
|
|
# Cloud KMS signature, only present when GPG_KMS_KEY is set.
|
|
if [[ -f "./build/${slim_binary}.v2.asc" ]]; then
|
|
gcloud storage cp "./build/${slim_binary}.v2.asc" "gs://releases.coder.com/coder-cli/${version}/${cli_name}.v2.asc"
|
|
fi
|
|
done
|
|
|
|
# Mint a short-lived installation token from the dedicated release
|
|
# GitHub App. Only the App may create tags (ruleset "Release tags (App
|
|
# only)"), so `gh release create` needs its token for any tag it creates.
|
|
# Dry runs create no release, so they never mint it.
|
|
- name: Generate release App token
|
|
id: release_app_token
|
|
if: ${{ !inputs.dry_run }}
|
|
# The App's key is a non-exportable Cloud KMS key; only this workflow, in this environment,
|
|
# may sign with it.
|
|
uses: coder/github-app-token-action@00eaec58ee1bfea9c8b48655b7ab7470b07739e5 # main 2026-11-17
|
|
with:
|
|
client-id: ${{ secrets.RELEASE_APP_ID }}
|
|
kms-key: ${{ secrets.RELEASE_APP_KMS_KEY }}
|
|
workload-identity-provider: ${{ secrets.APP_KEYS_WORKLOAD_ID_PROVIDER }}
|
|
owner: coder
|
|
repositories: coder
|
|
permissions: |
|
|
contents: write
|
|
workflows: write
|
|
|
|
- name: Publish release
|
|
run: |
|
|
set -euo pipefail
|
|
|
|
publish_args=()
|
|
if [[ $CODER_RELEASE_CHANNEL == "stable" ]]; then
|
|
publish_args+=(--stable)
|
|
fi
|
|
if [[ $CODER_RELEASE_CHANNEL == "rc" ]]; then
|
|
publish_args+=(--rc)
|
|
fi
|
|
if [[ $CODER_DRY_RUN == *t* ]]; then
|
|
publish_args+=(--dry-run)
|
|
fi
|
|
declare -p publish_args
|
|
|
|
# Build the list of files to publish
|
|
files=(
|
|
./build/*_installer.exe
|
|
./build/*.zip
|
|
./build/*.tar.gz
|
|
./build/*.tgz
|
|
./build/*.apk
|
|
./build/*.deb
|
|
./build/*.rpm
|
|
)
|
|
|
|
# The SBOM is only generated for real releases.
|
|
if [[ $CODER_DRY_RUN != *t* ]]; then
|
|
files+=("./coder_${VERSION}_sbom.spdx.json")
|
|
fi
|
|
|
|
./scripts/release/publish.sh \
|
|
"${publish_args[@]}" \
|
|
--release-notes-file "$CODER_RELEASE_NOTES_FILE" \
|
|
"${files[@]}"
|
|
env:
|
|
# Use the dedicated release App token (github-actions[bot] is blocked
|
|
# from creating tags by the tag-create protection ruleset).
|
|
GITHUB_TOKEN: ${{ steps.release_app_token.outputs.token }}
|
|
CODER_GPG_RELEASE_KEY_BASE64: ${{ secrets.GPG_RELEASE_KEY_BASE64 }}
|
|
CODER_GPG_KMS_KEY: ${{ secrets.GPG_KMS_KEY }}
|
|
CODER_GPG_KMS_CREDENTIALS_FILE: ${{ steps.build.outputs.release-signer-credentials-file }}
|
|
VERSION: ${{ steps.version.outputs.version }}
|
|
|
|
# Mark the Linear release as shipped.
|
|
- name: Extract Linear release version
|
|
if: ${{ !inputs.dry_run }}
|
|
id: linear_version
|
|
run: |
|
|
# Skip RC releases — they must not complete the Linear release.
|
|
if [[ "$VERSION" == *-rc* ]]; then
|
|
echo "RC release (${VERSION}), skipping Linear release completion."
|
|
echo "skip=true" >> "$GITHUB_OUTPUT"
|
|
exit 0
|
|
fi
|
|
# Strip patch to get the Linear release version (e.g. 2.32.0 -> 2.32).
|
|
linear_version=$(echo "$VERSION" | cut -d. -f1,2)
|
|
echo "version=$linear_version" >> "$GITHUB_OUTPUT"
|
|
echo "skip=false" >> "$GITHUB_OUTPUT"
|
|
echo "Completing Linear release ${linear_version}"
|
|
env:
|
|
VERSION: ${{ steps.version.outputs.version }}
|
|
|
|
- name: Complete Linear release
|
|
if: ${{ !inputs.dry_run && steps.linear_version.outputs.skip != 'true' }}
|
|
continue-on-error: true
|
|
uses: linear/linear-release-action@dd4fc407f860b9460d2cf0b3fb1edd8985cf443f # v0.18.2
|
|
with:
|
|
access_key: ${{ secrets.LINEAR_ACCESS_KEY }}
|
|
command: complete
|
|
version: ${{ steps.linear_version.outputs.version }}
|
|
timeout: 300
|
|
|
|
- name: Authenticate to Google Cloud
|
|
uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # v3.0.0
|
|
with:
|
|
workload_identity_provider: ${{ vars.GCP_WORKLOAD_ID_PROVIDER }}
|
|
service_account: ${{ vars.GCP_SERVICE_ACCOUNT }}
|
|
|
|
- name: Setup GCloud SDK
|
|
uses: google-github-actions/setup-gcloud@aa5489c8933f4cc7a4f7d45035b3b1440c9c10db # 3.0.1
|
|
|
|
- name: Publish Helm Chart
|
|
if: ${{ !inputs.dry_run }}
|
|
run: |
|
|
set -euo pipefail
|
|
version="$(./scripts/version.sh)"
|
|
mkdir -p build/helm
|
|
cp "build/coder_helm_${version}.tgz" build/helm
|
|
cp "build/provisioner_helm_${version}.tgz" build/helm
|
|
cp "build/ai-gateway_helm_${version}.tgz" build/helm
|
|
gsutil -h "Cache-Control:no-cache,max-age=0" cp "build/helm/coder_helm_${version}.tgz" gs://helm.coder.com/v2
|
|
gsutil -h "Cache-Control:no-cache,max-age=0" cp "build/helm/provisioner_helm_${version}.tgz" gs://helm.coder.com/v2
|
|
gsutil -h "Cache-Control:no-cache,max-age=0" cp "build/helm/ai-gateway_helm_${version}.tgz" gs://helm.coder.com/v2
|
|
|
|
# index.yaml is shared by every release, so two releases publishing
|
|
# concurrently would each merge only their own charts and the last
|
|
# writer would drop the other's entries. The if-generation-match
|
|
# precondition makes the loser fail instead; re-running the job
|
|
# merges against the fresh index.
|
|
index_url=gs://helm.coder.com/v2/index.yaml
|
|
generation="$(gsutil stat "$index_url" | awk '/^ *Generation:/ {print $2}')"
|
|
gsutil cp "$index_url" build/helm/index.yaml
|
|
helm repo index build/helm --url https://helm.coder.com/v2 --merge build/helm/index.yaml
|
|
if ! gsutil -h "Cache-Control:no-cache,max-age=0" -h "x-goog-if-generation-match:${generation}" cp build/helm/index.yaml "$index_url"; then
|
|
echo "::error::index.yaml was modified by another release since it was read (generation $generation). Re-run this job to merge against the current index." >&2
|
|
exit 1
|
|
fi
|
|
|
|
gsutil -h "Cache-Control:no-cache,max-age=0" cp "helm/artifacthub-repo.yml" gs://helm.coder.com/v2
|
|
# The OCI charts (oci://ghcr.io/coder/chart) were promoted above.
|
|
|
|
- name: Upload artifacts to actions (if dry-run)
|
|
if: ${{ inputs.dry_run }}
|
|
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
with:
|
|
name: release-artifacts
|
|
path: |
|
|
./build/*_installer.exe
|
|
./build/*.zip
|
|
./build/*.tar.gz
|
|
./build/*.tgz
|
|
./build/*.apk
|
|
./build/*.deb
|
|
./build/*.rpm
|
|
./coder_${{ steps.version.outputs.version }}_sbom.spdx.json
|
|
retention-days: 7
|
|
|
|
# The coder-package-publisher App (installed on coder/packages and coder/homebrew-coder) has its key only in
|
|
# the release-publish environment, so the packages dispatch runs here rather than in the release job.
|
|
publish-packages:
|
|
name: Publish to coder/packages
|
|
runs-on: ubuntu-latest
|
|
needs: release
|
|
if: ${{ !inputs.dry_run && inputs.release_channel != 'rc' }}
|
|
environment: release-publish
|
|
permissions:
|
|
contents: read
|
|
id-token: write # Cloud KMS signs the coder-package-publisher App's JWT
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@aebdcf6156ab6691adf63218240e476564a1ed4c # v2.23.0
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: Generate coder-package-publisher App token
|
|
id: publisher_token
|
|
# The App's key is a non-exportable Cloud KMS key; only this workflow, in this environment,
|
|
# may sign with it.
|
|
uses: coder/github-app-token-action@00eaec58ee1bfea9c8b48655b7ab7470b07739e5 # main 2026-11-17
|
|
with:
|
|
client-id: ${{ secrets.CODER_PACKAGE_PUBLISHER_APP_ID }}
|
|
kms-key: ${{ secrets.CODER_PACKAGE_PUBLISHER_APP_KMS_KEY }}
|
|
workload-identity-provider: ${{ secrets.APP_KEYS_WORKLOAD_ID_PROVIDER }}
|
|
owner: coder
|
|
repositories: packages
|
|
# repository_dispatch needs contents: write on the target repository.
|
|
permissions: |
|
|
contents: write
|
|
|
|
- name: Send repository-dispatch event
|
|
uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1
|
|
with:
|
|
token: ${{ steps.publisher_token.outputs.token }}
|
|
repository: coder/packages
|
|
event-type: coder-release
|
|
client-payload: '{"coder_version": "${{ needs.release.outputs.version }}", "release_channel": "${{ inputs.release_channel }}"}'
|
|
|
|
publish-homebrew:
|
|
name: Publish to Homebrew tap
|
|
runs-on: ubuntu-latest
|
|
needs: release
|
|
if: ${{ !inputs.dry_run && inputs.release_channel == 'mainline' }}
|
|
environment: release-publish
|
|
permissions:
|
|
contents: read
|
|
id-token: write # Cloud KMS signs the coder-package-publisher App's JWT
|
|
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@aebdcf6156ab6691adf63218240e476564a1ed4c # v2.23.0
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: Generate coder-package-publisher App token
|
|
id: publisher_token
|
|
# The App's key is a non-exportable Cloud KMS key; only this workflow, in this environment,
|
|
# may sign with it.
|
|
uses: coder/github-app-token-action@00eaec58ee1bfea9c8b48655b7ab7470b07739e5 # main 2026-11-17
|
|
with:
|
|
client-id: ${{ secrets.CODER_PACKAGE_PUBLISHER_APP_ID }}
|
|
kms-key: ${{ secrets.CODER_PACKAGE_PUBLISHER_APP_KMS_KEY }}
|
|
workload-identity-provider: ${{ secrets.APP_KEYS_WORKLOAD_ID_PROVIDER }}
|
|
owner: coder
|
|
repositories: homebrew-coder
|
|
permissions: |
|
|
contents: write
|
|
pull_requests: write
|
|
|
|
- name: Update homebrew
|
|
env:
|
|
GH_REPO: coder/homebrew-coder
|
|
# The App token only reaches coder/homebrew-coder; the release assets are read with the
|
|
# workflow's own token.
|
|
GH_TOKEN: ${{ steps.publisher_token.outputs.token }}
|
|
RELEASE_READ_TOKEN: ${{ github.token }}
|
|
VERSION: ${{ needs.release.outputs.version }}
|
|
run: |
|
|
# Keep version number around for reference, removing any potential leading v
|
|
coder_version="$(echo "${VERSION}" | tr -d v)"
|
|
|
|
set -euxo pipefail
|
|
|
|
# Setup Git
|
|
git config --global user.email "ci@coder.com"
|
|
git config --global user.name "Coder CI"
|
|
git config --global credential.helper "store"
|
|
|
|
temp_dir="$(mktemp -d)"
|
|
cd "$temp_dir"
|
|
|
|
# Download checksums
|
|
checksums_url="$(GH_TOKEN="$RELEASE_READ_TOKEN" gh release view --repo coder/coder "v$coder_version" --json assets \
|
|
| jq -r ".assets | map(.url) | .[]" \
|
|
| grep -e ".checksums.txt\$")"
|
|
wget "$checksums_url" -O checksums.txt
|
|
|
|
# Get the SHAs
|
|
darwin_arm_sha="$(grep "darwin_arm64.zip" checksums.txt | awk '{ print $1 }')"
|
|
darwin_intel_sha="$(grep "darwin_amd64.zip" checksums.txt | awk '{ print $1 }')"
|
|
linux_sha="$(grep "linux_amd64.tar.gz" checksums.txt | awk '{ print $1 }')"
|
|
|
|
echo "macOS arm64: $darwin_arm_sha"
|
|
echo "macOS amd64: $darwin_intel_sha"
|
|
echo "Linux amd64: $linux_sha"
|
|
|
|
# Check out the homebrew repo
|
|
git clone "https://github.com/$GH_REPO" homebrew-coder
|
|
brew_branch="auto-release/$coder_version"
|
|
cd homebrew-coder
|
|
|
|
# Check if a PR already exists.
|
|
pr_count="$(gh pr list --search "head:$brew_branch" --json id,closed | jq -r ".[] | select(.closed == false) | .id" | wc -l)"
|
|
if [ "$pr_count" -gt 0 ]; then
|
|
echo "Bailing out as PR already exists" 2>&1
|
|
exit 0
|
|
fi
|
|
|
|
# Set up coder-package-publisher credentials for pushing to homebrew-coder
|
|
echo "https://x-access-token:$GH_TOKEN@github.com" >> ~/.git-credentials
|
|
# Update the formulae and push
|
|
git checkout -b "$brew_branch"
|
|
./scripts/update-v2.sh "$coder_version" "$darwin_arm_sha" "$darwin_intel_sha" "$linux_sha"
|
|
git add .
|
|
git commit -m "coder $coder_version"
|
|
git push -u origin -f "$brew_branch"
|
|
|
|
# Create PR
|
|
gh pr create \
|
|
-B master -H "$brew_branch" \
|
|
-t "coder $coder_version" \
|
|
-b "" \
|
|
-r "${GITHUB_ACTOR}" \
|
|
-a "${GITHUB_ACTOR}" \
|
|
-b "This automatic PR was triggered by the release of Coder v$coder_version"
|
|
|
|
publish-winget:
|
|
name: Publish to winget-pkgs
|
|
runs-on: windows-latest
|
|
needs: release
|
|
if: ${{ !inputs.dry_run && inputs.release_channel != 'rc' }}
|
|
environment: release-publish
|
|
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@aebdcf6156ab6691adf63218240e476564a1ed4c # v2.23.0
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: Sync fork
|
|
run: gh repo sync cdrci/winget-pkgs -b master
|
|
env:
|
|
GH_TOKEN: ${{ secrets.CDRCI_GITHUB_TOKEN }}
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
|
|
# If the event that triggered the build was an annotated tag (which our
|
|
# tags are supposed to be), actions/checkout has a bug where the tag in
|
|
# question is only a lightweight tag and not a full annotated tag. This
|
|
# command seems to fix it.
|
|
# https://github.com/actions/checkout/issues/290
|
|
- name: Fetch git tags
|
|
run: git fetch --tags --force
|
|
|
|
# Pinned to a release and checked against its SHA-256, which matches both
|
|
# GitHub's asset digest and the wingetcreate.exe.txt checksum file Microsoft
|
|
# publishes alongside it. To update, take both values from a newer release
|
|
# at https://github.com/microsoft/winget-create/releases.
|
|
- name: Install wingetcreate
|
|
run: |
|
|
$ErrorActionPreference = "Stop"
|
|
Invoke-WebRequest -Uri "https://github.com/microsoft/winget-create/releases/download/$env:WINGETCREATE_VERSION/wingetcreate.exe" -OutFile wingetcreate.exe
|
|
$hash = (Get-FileHash -Algorithm SHA256 -Path wingetcreate.exe).Hash
|
|
if ($hash -ne $env:WINGETCREATE_SHA256) {
|
|
Remove-Item wingetcreate.exe
|
|
throw "wingetcreate.exe $env:WINGETCREATE_VERSION checksum mismatch: got $hash"
|
|
}
|
|
env:
|
|
WINGETCREATE_VERSION: v1.28.1.0
|
|
WINGETCREATE_SHA256: 63D980BA79E97042395BD6EB5992C2DB9E01E9E7A8A22958A95C288F27310413
|
|
|
|
- name: Submit updated manifest to winget-pkgs
|
|
run: |
|
|
# The package version is the same as the tag minus the leading "v".
|
|
# The version in this output already has the leading "v" removed but
|
|
# we do it again to be safe.
|
|
$version = $env:VERSION.Trim('v')
|
|
|
|
$release_assets = gh release view --repo coder/coder "v${version}" --json assets | `
|
|
ConvertFrom-Json
|
|
# Get the installer URLs from the release assets.
|
|
$amd64_installer_url = $release_assets.assets | `
|
|
Where-Object name -Match ".*_windows_amd64_installer.exe$" | `
|
|
Select -ExpandProperty url
|
|
$amd64_zip_url = $release_assets.assets | `
|
|
Where-Object name -Match ".*_windows_amd64.zip$" | `
|
|
Select -ExpandProperty url
|
|
$arm64_zip_url = $release_assets.assets | `
|
|
Where-Object name -Match ".*_windows_arm64.zip$" | `
|
|
Select -ExpandProperty url
|
|
|
|
echo "amd64 Installer URL: ${amd64_installer_url}"
|
|
echo "amd64 zip URL: ${amd64_zip_url}"
|
|
echo "arm64 zip URL: ${arm64_zip_url}"
|
|
echo "Package version: ${version}"
|
|
|
|
.\wingetcreate.exe update Coder.Coder `
|
|
--submit `
|
|
--version "${version}" `
|
|
--urls "${amd64_installer_url}" "${amd64_zip_url}" "${arm64_zip_url}"
|
|
|
|
env:
|
|
# For gh CLI:
|
|
GH_TOKEN: ${{ github.token }}
|
|
# For wingetcreate. We need a real token since we're pushing a commit
|
|
# to GitHub and then making a PR in a different repo.
|
|
# wingetcreate will read the token from the environment variable defined below.
|
|
# Reference: https://aka.ms/winget-create-token
|
|
WINGET_CREATE_GITHUB_TOKEN: ${{ secrets.CDRCI_GITHUB_TOKEN }}
|
|
VERSION: ${{ needs.release.outputs.version }}
|
|
|
|
- name: Comment on PR
|
|
run: |
|
|
# wait 30 seconds
|
|
Start-Sleep -Seconds 30.0
|
|
# Find the PR that wingetcreate just made.
|
|
$version = $env:VERSION.Trim('v')
|
|
$pr_list = gh pr list --repo microsoft/winget-pkgs --search "author:cdrci Coder.Coder version ${version}" --limit 1 --json number | `
|
|
ConvertFrom-Json
|
|
$pr_number = $pr_list[0].number
|
|
|
|
gh pr comment --repo microsoft/winget-pkgs "${pr_number}" --body "🤖 cc: @deansheather @matifali"
|
|
|
|
env:
|
|
# For gh CLI. We need a real token since we're commenting on a PR in a
|
|
# different repo.
|
|
GH_TOKEN: ${{ secrets.CDRCI_GITHUB_TOKEN }}
|
|
VERSION: ${{ needs.release.outputs.version }}
|