Repository navigation
chore: release 0.3.0 - #78
Merged
Merged
Conversation
Syncs `dev` with `main` (sync-main-to-dev workflow).
Syncs `dev` with `main` (sync-main-to-dev workflow).
Syncs `dev` with `main` (sync-main-to-dev workflow).
Syncs `dev` with `main` (sync-main-to-dev workflow).
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [undici](https://undici.nodejs.org) ([source](https://redirect.github.com/nodejs/undici)) | [`6.23.0` → `6.27.0`](https://renovatebot.com/diffs/npm/undici/6.23.0/6.27.0) |  |  | --- ### Undici: Malicious WebSocket 64-bit length overflows parser and crashes the client [CVE-2026-1528](https://nvd.nist.gov/vuln/detail/CVE-2026-1528) / [GHSA-f269-vfmq-vjvj](https://redirect.github.com/advisories/GHSA-f269-vfmq-vjvj) <details> <summary>More information</summary> #### Details ##### Impact A server can reply with a WebSocket frame using the 64-bit length form and an extremely large length. undici's ByteParser overflows internal math, ends up in an invalid state, and throws a fatal TypeError that terminates the process. ##### Patches Patched in the undici version v7.24.0 and v6.24.0. Users should upgrade to this version or later. ##### Workarounds There are no workarounds. #### Severity - CVSS Score: 7.5 / 10 (High) - Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H` #### References - [https://github.com/nodejs/undici/security/advisories/GHSA-f269-vfmq-vjvj](https://redirect.github.com/nodejs/undici/security/advisories/GHSA-f269-vfmq-vjvj) - [https://nvd.nist.gov/vuln/detail/CVE-2026-1528](https://nvd.nist.gov/vuln/detail/CVE-2026-1528) - [https://hackerone.com/reports/3537648](https://hackerone.com/reports/3537648) - [https://cna.openjsf.org/security-advisories.html](https://cna.openjsf.org/security-advisories.html) - [https://github.com/advisories/GHSA-f269-vfmq-vjvj](https://redirect.github.com/advisories/GHSA-f269-vfmq-vjvj) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-f269-vfmq-vjvj) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Undici has an HTTP Request/Response Smuggling issue [CVE-2026-1525](https://nvd.nist.gov/vuln/detail/CVE-2026-1525) / [GHSA-2mjp-6q6p-2qxm](https://redirect.github.com/advisories/GHSA-2mjp-6q6p-2qxm) <details> <summary>More information</summary> #### Details ##### Impact Undici allows duplicate HTTP `Content-Length` headers when they are provided in an array with case-variant names (e.g., `Content-Length` and `content-length`). This produces malformed HTTP/1.1 requests with multiple conflicting `Content-Length` values on the wire. **Who is impacted:** - Applications using `undici.request()`, `undici.Client`, or similar low-level APIs with headers passed as flat arrays - Applications that accept user-controlled header names without case-normalization **Potential consequences:** - **Denial of Service**: Strict HTTP parsers (proxies, servers) will reject requests with duplicate `Content-Length` headers (400 Bad Request) - **HTTP Request Smuggling**: In deployments where an intermediary and backend interpret duplicate headers inconsistently (e.g., one uses the first value, the other uses the last), this can enable request smuggling attacks leading to ACL bypass, cache poisoning, or credential hijacking ##### Patches Patched in the undici version v7.24.0 and v6.24.0. Users should upgrade to this version or later. ##### Workarounds If upgrading is not immediately possible: 1. **Validate header names**: Ensure no duplicate `Content-Length` headers (case-insensitive) are present before passing headers to undici 2. **Use object format**: Pass headers as a plain object (`{ 'content-length': '123' }`) rather than an array, which naturally deduplicates by key 3. **Sanitize user input**: If headers originate from user input, normalize header names to lowercase and reject duplicates #### Severity - CVSS Score: 6.5 / 10 (Medium) - Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L` #### References - [https://github.com/nodejs/undici/security/advisories/GHSA-2mjp-6q6p-2qxm](https://redirect.github.com/nodejs/undici/security/advisories/GHSA-2mjp-6q6p-2qxm) - [https://nvd.nist.gov/vuln/detail/CVE-2026-1525](https://nvd.nist.gov/vuln/detail/CVE-2026-1525) - [https://hackerone.com/reports/3556037](https://hackerone.com/reports/3556037) - [https://cna.openjsf.org/security-advisories.html](https://cna.openjsf.org/security-advisories.html) - [https://cwe.mitre.org/data/definitions/444.html](https://cwe.mitre.org/data/definitions/444.html) - [https://www.rfc-editor.org/rfc/rfc9110.html#section-8.6](https://www.rfc-editor.org/rfc/rfc9110.html#section-8.6) - [https://github.com/advisories/GHSA-2mjp-6q6p-2qxm](https://redirect.github.com/advisories/GHSA-2mjp-6q6p-2qxm) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-2mjp-6q6p-2qxm) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Undici has CRLF Injection in undici via `upgrade` option [CVE-2026-1527](https://nvd.nist.gov/vuln/detail/CVE-2026-1527) / [GHSA-4992-7rv2-5pvq](https://redirect.github.com/advisories/GHSA-4992-7rv2-5pvq) <details> <summary>More information</summary> #### Details ##### Impact When an application passes user-controlled input to the `upgrade` option of `client.request()`, an attacker can inject CRLF sequences (`\r\n`) to: 1. Inject arbitrary HTTP headers 2. Terminate the HTTP request prematurely and smuggle raw data to non-HTTP services (Redis, Memcached, Elasticsearch) The vulnerability exists because undici writes the `upgrade` value directly to the socket without validating for invalid header characters: ```javascript // lib/dispatcher/client-h1.js:1121 if (upgrade) { header += `connection: upgrade\r\nupgrade: ${upgrade}\r\n` } ``` ##### Patches Patched in the undici version v7.24.0 and v6.24.0. Users should upgrade to this version or later. ##### Workarounds Sanitize the `upgrade` option string before passing to undici: ```javascript function sanitizeUpgrade(value) { if (/[\r\n]/.test(value)) { throw new Error('Invalid upgrade value') } return value } client.request({ upgrade: sanitizeUpgrade(userInput) }) ``` #### Severity - CVSS Score: 4.6 / 10 (Medium) - Vector String: `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N` #### References - [https://github.com/nodejs/undici/security/advisories/GHSA-4992-7rv2-5pvq](https://redirect.github.com/nodejs/undici/security/advisories/GHSA-4992-7rv2-5pvq) - [https://nvd.nist.gov/vuln/detail/CVE-2026-1527](https://nvd.nist.gov/vuln/detail/CVE-2026-1527) - [https://hackerone.com/reports/3487198](https://hackerone.com/reports/3487198) - [https://cna.openjsf.org/security-advisories.html](https://cna.openjsf.org/security-advisories.html) - [https://github.com/advisories/GHSA-4992-7rv2-5pvq](https://redirect.github.com/advisories/GHSA-4992-7rv2-5pvq) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-4992-7rv2-5pvq) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Undici has Unbounded Memory Consumption in WebSocket permessage-deflate Decompression [CVE-2026-1526](https://nvd.nist.gov/vuln/detail/CVE-2026-1526) / [GHSA-vrm6-8vpv-qv8q](https://redirect.github.com/advisories/GHSA-vrm6-8vpv-qv8q) <details> <summary>More information</summary> #### Details ##### Description The undici WebSocket client is vulnerable to a denial-of-service attack via unbounded memory consumption during permessage-deflate decompression. When a WebSocket connection negotiates the permessage-deflate extension, the client decompresses incoming compressed frames without enforcing any limit on the decompressed data size. A malicious WebSocket server can send a small compressed frame (a "decompression bomb") that expands to an extremely large size in memory, causing the Node.js process to exhaust available memory and crash or become unresponsive. The vulnerability exists in the `PerMessageDeflate.decompress()` method, which accumulates all decompressed chunks in memory and concatenates them into a single Buffer without checking whether the total size exceeds a safe threshold. ##### Impact - Remote denial of service against any Node.js application using undici's WebSocket client - A single compressed WebSocket frame of ~6 MB can decompress to ~1 GB or more - Memory exhaustion occurs in native/external memory, bypassing V8 heap limits - No application-level mitigation is possible as decompression occurs before message delivery ##### Patches Users should upgrade to fixed versions. ##### Workarounds No workaround are possible. #### Severity - CVSS Score: 7.5 / 10 (High) - Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H` #### References - [https://github.com/nodejs/undici/security/advisories/GHSA-vrm6-8vpv-qv8q](https://redirect.github.com/nodejs/undici/security/advisories/GHSA-vrm6-8vpv-qv8q) - [https://nvd.nist.gov/vuln/detail/CVE-2026-1526](https://nvd.nist.gov/vuln/detail/CVE-2026-1526) - [https://hackerone.com/reports/3481206](https://hackerone.com/reports/3481206) - [https://cna.openjsf.org/security-advisories.html](https://cna.openjsf.org/security-advisories.html) - [https://datatracker.ietf.org/doc/html/rfc7692](https://datatracker.ietf.org/doc/html/rfc7692) - [https://owasp.org/www-community/attacks/Denial_of_Service](https://owasp.org/www-community/attacks/Denial_of_Service) - [https://github.com/advisories/GHSA-vrm6-8vpv-qv8q](https://redirect.github.com/advisories/GHSA-vrm6-8vpv-qv8q) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-vrm6-8vpv-qv8q) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Undici has Unhandled Exception in WebSocket Client Due to Invalid server_max_window_bits Validation [CVE-2026-2229](https://nvd.nist.gov/vuln/detail/CVE-2026-2229) / [GHSA-v9p9-hfj2-hcw8](https://redirect.github.com/advisories/GHSA-v9p9-hfj2-hcw8) <details> <summary>More information</summary> #### Details ##### Impact The undici WebSocket client is vulnerable to a denial-of-service attack due to improper validation of the `server_max_window_bits` parameter in the permessage-deflate extension. When a WebSocket client connects to a server, it automatically advertises support for permessage-deflate compression. A malicious server can respond with an out-of-range `server_max_window_bits` value (outside zlib's valid range of 8-15). When the server subsequently sends a compressed frame, the client attempts to create a zlib InflateRaw instance with the invalid windowBits value, causing a synchronous RangeError exception that is not caught, resulting in immediate process termination. The vulnerability exists because: 1. The `isValidClientWindowBits()` function only validates that the value contains ASCII digits, not that it falls within the valid range 8-15 2. The `createInflateRaw()` call is not wrapped in a try-catch block 3. The resulting exception propagates up through the call stack and crashes the Node.js process ##### Patches _Has the problem been patched? What versions should users upgrade to?_ ##### Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_ #### Severity - CVSS Score: 7.5 / 10 (High) - Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H` #### References - [https://github.com/nodejs/undici/security/advisories/GHSA-v9p9-hfj2-hcw8](https://redirect.github.com/nodejs/undici/security/advisories/GHSA-v9p9-hfj2-hcw8) - [https://nvd.nist.gov/vuln/detail/CVE-2026-2229](https://nvd.nist.gov/vuln/detail/CVE-2026-2229) - [https://hackerone.com/reports/3487486](https://hackerone.com/reports/3487486) - [https://cna.openjsf.org/security-advisories.html](https://cna.openjsf.org/security-advisories.html) - [https://datatracker.ietf.org/doc/html/rfc7692](https://datatracker.ietf.org/doc/html/rfc7692) - [https://nodejs.org/api/zlib.html#class-zlibinflateraw](https://nodejs.org/api/zlib.html#class-zlibinflateraw) - [https://github.com/advisories/GHSA-v9p9-hfj2-hcw8](https://redirect.github.com/advisories/GHSA-v9p9-hfj2-hcw8) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-v9p9-hfj2-hcw8) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### undici WebSocket client vulnerable to denial of service via fragment count bypass [CVE-2026-12151](https://nvd.nist.gov/vuln/detail/CVE-2026-12151) / [GHSA-vxpw-j846-p89q](https://redirect.github.com/advisories/GHSA-vxpw-j846-p89q) <details> <summary>More information</summary> #### Details ##### Impact The undici WebSocket client enforces `maxPayloadSize` on the cumulative byte count of fragments in a message but does not enforce a limit on the number of fragments. A malicious WebSocket server can stream many small or empty continuation frames that each pass per-frame and cumulative-size validation, collectively causing unbounded memory growth in the client process. The result is memory exhaustion and a denial of service. Affected applications are those using the undici WebSocket client (`new WebSocket(...)`) or the `WebSocketStream` API that can be induced to connect to an attacker-controlled or compromised WebSocket endpoint. All releases starting at undici 6.17.0 are affected. ##### Patches Upgrade to undici v6.27.0, v7.28.0 or v8.5.0. ##### Workarounds No workaround is available. The fix must be applied through an upgrade. #### Severity - CVSS Score: 7.5 / 10 (High) - Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H` #### References - [https://github.com/nodejs/undici/security/advisories/GHSA-vxpw-j846-p89q](https://redirect.github.com/nodejs/undici/security/advisories/GHSA-vxpw-j846-p89q) - [https://nvd.nist.gov/vuln/detail/CVE-2026-12151](https://nvd.nist.gov/vuln/detail/CVE-2026-12151) - [https://cna.openjsf.org/security-advisories.html](https://cna.openjsf.org/security-advisories.html) - [https://github.com/advisories/GHSA-vxpw-j846-p89q](https://redirect.github.com/advisories/GHSA-vxpw-j846-p89q) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-vxpw-j846-p89q) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### undici vulnerable to HTTP response queue poisoning via keep-alive socket reuse [CVE-2026-6733](https://nvd.nist.gov/vuln/detail/CVE-2026-6733) / [GHSA-35p6-xmwp-9g52](https://redirect.github.com/advisories/GHSA-35p6-xmwp-9g52) <details> <summary>More information</summary> #### Details ##### Impact Undici's HTTP/1.1 client is vulnerable to response queue poisoning on reused keep-alive sockets. An attacker-controlled upstream server can inject an unsolicited HTTP/1.1 response onto an idle socket after a request completes. When the client dispatches the next request on that socket, it associates the injected response with the new request, causing responses to be delivered to the wrong requests. This requires an attacker-controlled or compromised upstream HTTP/1.1 server and keep-alive connection reuse. ##### Patches Upgrade to undici v6.27.0, v7.28.0 or v8.5.0. ##### Workarounds Disable keep-alive connection reuse by setting `keepAliveTimeout: 0` on the Client or Pool. #### Severity - CVSS Score: 3.7 / 10 (Low) - Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N` #### References - [https://github.com/nodejs/undici/security/advisories/GHSA-35p6-xmwp-9g52](https://redirect.github.com/nodejs/undici/security/advisories/GHSA-35p6-xmwp-9g52) - [https://nvd.nist.gov/vuln/detail/CVE-2026-6733](https://nvd.nist.gov/vuln/detail/CVE-2026-6733) - [https://hackerone.com/reports/3582376](https://hackerone.com/reports/3582376) - [https://cna.openjsf.org/security-advisories.html](https://cna.openjsf.org/security-advisories.html) - [https://github.com/advisories/GHSA-35p6-xmwp-9g52](https://redirect.github.com/advisories/GHSA-35p6-xmwp-9g52) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-35p6-xmwp-9g52) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### undici vulnerable to HTTP header injection via Set-Cookie percent-decoding [CVE-2026-9679](https://nvd.nist.gov/vuln/detail/CVE-2026-9679) / [GHSA-p88m-4jfj-68fv](https://redirect.github.com/advisories/GHSA-p88m-4jfj-68fv) <details> <summary>More information</summary> #### Details ##### Impact undici's cookie parser in `parseSetCookie` percent-decodes cookie values via `qsUnescape`, turning encoded sequences like `%0D%0A`, `%00`, `%3B`, and `%3D` into their literal byte equivalents. RFC 6265 §5.4 does not specify any decoding and browsers do not decode either. Applications that parse a `Set-Cookie` header and then forward the parsed value into a response header (proxies, middleware, SSR frameworks) become vulnerable to HTTP response header injection: an attacker-controlled upstream can inject arbitrary `Set-Cookie`, `Location`, or `Cache-Control` headers into the application's downstream response, enabling session fixation, open redirect, or cache poisoning. Affected applications are those that use undici's cookie parsing (`parseSetCookie`, `parseCookie`, `getSetCookies`) and forward the parsed cookie value into a response header. This was introduced in undici 7.0.0 via [#​3789](https://redirect.github.com/nodejs/undici/pull/3789). ##### Patches Upgrade to undici v6.27.0, v7.28.0 or v8.5.0. ##### Workarounds If upgrade is not immediately possible, do not forward values returned by `parseSetCookie`/`parseCookie`/`getSetCookies` directly into response headers; sanitize the value first to strip or reject CR, LF, NUL, `;`, and `=` bytes. #### Severity - CVSS Score: 5.9 / 10 (Medium) - Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N` #### References - [https://github.com/nodejs/undici/security/advisories/GHSA-p88m-4jfj-68fv](https://redirect.github.com/nodejs/undici/security/advisories/GHSA-p88m-4jfj-68fv) - [https://nvd.nist.gov/vuln/detail/CVE-2026-9679](https://nvd.nist.gov/vuln/detail/CVE-2026-9679) - [https://cna.openjsf.org/security-advisories.html](https://cna.openjsf.org/security-advisories.html) - [https://github.com/advisories/GHSA-p88m-4jfj-68fv](https://redirect.github.com/advisories/GHSA-p88m-4jfj-68fv) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-p88m-4jfj-68fv) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### undici vulnerable to Set-Cookie SameSite attribute downgrade via permissive substring matching [CVE-2026-11525](https://nvd.nist.gov/vuln/detail/CVE-2026-11525) / [GHSA-g8m3-5g58-fq7m](https://redirect.github.com/advisories/GHSA-g8m3-5g58-fq7m) <details> <summary>More information</summary> #### Details ##### Impact When undici parses a `Set-Cookie` header, it accepts any `SameSite` attribute value that contains `Strict`, `Lax`, or `None` as a substring, rather than the case-insensitive exact match specified by RFC 6265. Non-spec values are silently mapped to one of the three standard tokens: - `SameSite=NoneOfYourBusiness` is parsed as `None`, the most permissive setting. - `SameSite=StrictLax` is parsed as `Lax`, a downgrade from `Strict`. Affected applications are those that consume `Set-Cookie` headers from server responses (for example via undici's `fetch` or proxy code paths) and then forward or rely on the parsed `sameSite` attribute. A malicious or non-compliant server can coerce the consumer's view of a cookie's SameSite policy to a weaker value, silently degrading the SameSite enforcement the cookie is supposed to provide. This was introduced in undici 5.15.0 when the cookies feature was added. ##### Patches Upgrade to undici v6.27.0, v7.28.0 or v8.5.0. ##### Workarounds After parsing a `Set-Cookie` header, validate that the resulting `sameSite` attribute is one of `'Strict'`, `'Lax'`, or `'None'` (exact, case-insensitive) before forwarding or relying on it. #### Severity - CVSS Score: 3.7 / 10 (Low) - Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N` #### References - [https://github.com/nodejs/undici/security/advisories/GHSA-g8m3-5g58-fq7m](https://redirect.github.com/nodejs/undici/security/advisories/GHSA-g8m3-5g58-fq7m) - [https://nvd.nist.gov/vuln/detail/CVE-2026-11525](https://nvd.nist.gov/vuln/detail/CVE-2026-11525) - [https://cna.openjsf.org/security-advisories.html](https://cna.openjsf.org/security-advisories.html) - [https://github.com/advisories/GHSA-g8m3-5g58-fq7m](https://redirect.github.com/advisories/GHSA-g8m3-5g58-fq7m) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-g8m3-5g58-fq7m) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Release Notes <details> <summary>nodejs/undici (undici)</summary> ### [`v6.27.0`](https://redirect.github.com/nodejs/undici/releases/tag/v6.27.0) [Compare Source](https://redirect.github.com/nodejs/undici/compare/v6.26.0...v6.27.0) ###⚠️ Security Release This release line addresses **4 security advisories**. > **Action required:** Upgrade to **undici 6.27.0** or later. > > ```sh > npm install undici@^6.27.0 > ``` > **Note on patched version:** the v6 fixes shipped in **v6.27.0**, not `6.26.0` > — `v6.26.0` contains only the chunked-EOF fix ([#​5308](https://redirect.github.com/nodejs/undici/issues/5308)) and the version bump, none > of the security fixes below. The v6 line is **not** affected by the SOCKS5 advisories (GHSA-vmh5-mc38-953g, GHSA-hm92-r4w5-c3mj), the shared-cache disclosure (GHSA-pr7r-676h-xcf6), or the 8.x-only WebSocket regression (GHSA-38rv-x7px-6hhq). #### Summary | Advisory | CVE | Severity (CVSS) | Fixed in | Fix commit | | ----------------------------------------------------------------------------------------------- | -------------- | --------------- | -------- | -------------------------------------------------------------- | | [GHSA-vxpw-j846-p89q](https://redirect.github.com/nodejs/undici/security/advisories/GHSA-vxpw-j846-p89q) | CVE-2026-12151 | High (7.5) | 6.27.0 | [`b7f252e7`](https://redirect.github.com/nodejs/undici/commit/b7f252e7) | | [GHSA-p88m-4jfj-68fv](https://redirect.github.com/nodejs/undici/security/advisories/GHSA-p88m-4jfj-68fv) | CVE-2026-9679 | Moderate (5.9) | 6.27.0 | [`25efa447`](https://redirect.github.com/nodejs/undici/commit/25efa447) | | [GHSA-g8m3-5g58-fq7m](https://redirect.github.com/nodejs/undici/security/advisories/GHSA-g8m3-5g58-fq7m) | CVE-2026-11525 | Low (3.7) | 6.27.0 | [`25efa447`](https://redirect.github.com/nodejs/undici/commit/25efa447) | | [GHSA-35p6-xmwp-9g52](https://redirect.github.com/nodejs/undici/security/advisories/GHSA-35p6-xmwp-9g52) | CVE-2026-6733 | Low (3.7) | 6.27.0 | [`f4c31d60`](https://redirect.github.com/nodejs/undici/commit/f4c31d60) | *** #### High severity ##### WebSocket DoS via fragment count bypass — CVE-2026-12151 **[GHSA-vxpw-j846-p89q](https://redirect.github.com/nodejs/undici/security/advisories/GHSA-vxpw-j846-p89q)** · CWE-400, CWE-770 **Fix:** [`b7f252e7`](https://redirect.github.com/nodejs/undici/commit/b7f252e7) *Backport WebSocket maxPayloadSize fixes* ([#​5423](https://redirect.github.com/nodejs/undici/pull/5423), backported to v6 in [#​5428](https://redirect.github.com/nodejs/undici/pull/5428)) A malicious WebSocket server can stream a large number of small or empty continuation frames. Undici enforced a limit on cumulative payload size but did not limit the *number* of fragments per message, leading to unbounded memory growth and denial of service. All releases from 6.17.0 onward are affected. - **Affected:** applications using `new WebSocket(...)` or `WebSocketStream` against untrusted endpoints. - **Workaround:** none — upgrade is required. *** #### Moderate severity ##### HTTP header injection via Set-Cookie percent-decoding — CVE-2026-9679 **[GHSA-p88m-4jfj-68fv](https://redirect.github.com/nodejs/undici/security/advisories/GHSA-p88m-4jfj-68fv)** · CWE-93 **Fix:** [`25efa447`](https://redirect.github.com/nodejs/undici/commit/25efa447) *fix(cookies): preserve values and parse SameSite strictly* `parseSetCookie` applied percent-decoding to cookie values, turning encoded sequences like `%0D%0A` and `%00` into literal bytes, contrary to RFC 6265 §5.4 and browser behavior. Applications forwarding parsed Set-Cookie values into response headers were exposed to header injection, enabling session fixation, open redirects, and cache poisoning. - **Workaround:** sanitize values before forwarding — strip or reject CR, LF, NUL, `;`, and `=`. *** #### Low severity ##### Set-Cookie SameSite attribute downgrade — CVE-2026-11525 **[GHSA-g8m3-5g58-fq7m](https://redirect.github.com/nodejs/undici/security/advisories/GHSA-g8m3-5g58-fq7m)** · CWE-183 **Fix:** [`25efa447`](https://redirect.github.com/nodejs/undici/commit/25efa447) *fix(cookies): preserve values and parse SameSite strictly* The cookie parser accepted `SameSite` values containing `Strict`, `Lax`, or `None` as substrings rather than requiring exact matches per RFC 6265. Values like `SameSite=NoneOfYourBusiness` parsed as `None`, and `SameSite=StrictLax` parsed as `Lax`, silently weakening cookie security policies for apps that forward parsed attributes. ##### HTTP response queue poisoning via keep-alive socket reuse — CVE-2026-6733 **[GHSA-35p6-xmwp-9g52](https://redirect.github.com/nodejs/undici/security/advisories/GHSA-35p6-xmwp-9g52)** · CWE-367 (TOCTOU race condition) **Fix:** [`f4c31d60`](https://redirect.github.com/nodejs/undici/commit/f4c31d60) *fix: guard idle socket validation to skip fresh sockets* ([#​5400](https://redirect.github.com/nodejs/undici/pull/5400)) An attacker controlling an upstream HTTP/1.1 server could inject unsolicited responses onto idle keep-alive sockets. On socket reuse, the injected response was associated with a new request, delivering responses to the wrong requests. - **Requirements:** attacker-controlled/compromised upstream and active keep-alive reuse. - **Workaround:** disable keep-alive reuse with `keepAliveTimeout: 0` on the Client or Pool. *** #### Release contents & deliberate backports v6.27.0 is a security-only release — every change in it is one of the fixes above, backported to the v6.x maintenance line **on purpose**: - [`#5428`](https://redirect.github.com/nodejs/undici/pull/5428) — backport of the WebSocket `maxPayloadSize` fragment-count / cumulative-size limits to v6.x (CVE-2026-12151; this is the v6 counterpart of the v7 backport [#​5423](https://redirect.github.com/nodejs/undici/pull/5423)). - [`#5400`](https://redirect.github.com/nodejs/undici/pull/5400) — idle-socket-validation fix for the queue-poisoning issue (CVE-2026-6733). The cookie fix ([`25efa447`](https://redirect.github.com/nodejs/undici/commit/25efa447), covering both CVE-2026-9679 and CVE-2026-11525) was applied directly to the v6.x branch. Full changelog: [`v6.26.0...v6.27.0`](https://redirect.github.com/nodejs/undici/compare/v6.26.0...v6.27.0). *** #### Credits Per-advisory credits (as recorded in each GHSA): - **CVE-2026-12151** — reported by [@​lpinca](https://redirect.github.com/lpinca) & [@​Nadav0077](https://redirect.github.com/Nadav0077); reviewed by [@​UlisesGascon](https://redirect.github.com/UlisesGascon). - **CVE-2026-9679** — reported by [@​tndud042713](https://redirect.github.com/tndud042713); fixed by [@​mcollina](https://redirect.github.com/mcollina); reviewed by [@​KhafraDev](https://redirect.github.com/KhafraDev) & [@​UlisesGascon](https://redirect.github.com/UlisesGascon). - **CVE-2026-11525** — fixed by [@​mcollina](https://redirect.github.com/mcollina); reviewed by [@​UlisesGascon](https://redirect.github.com/UlisesGascon). - **CVE-2026-6733** — fixed by [@​mcollina](https://redirect.github.com/mcollina); verified by [@​UlisesGascon](https://redirect.github.com/UlisesGascon). ### [`v6.26.0`](https://redirect.github.com/nodejs/undici/releases/tag/v6.26.0) [Compare Source](https://redirect.github.com/nodejs/undici/compare/v6.25.0...v6.26.0) #### What's Changed - fix: validate EOF for chunked h1 responses by [@​mcollina](https://redirect.github.com/mcollina) in [#​5308](https://redirect.github.com/nodejs/undici/pull/5308) **Full Changelog**: <nodejs/undici@v6.25.0...v6.26.0> ### [`v6.25.0`](https://redirect.github.com/nodejs/undici/releases/tag/v6.25.0) [Compare Source](https://redirect.github.com/nodejs/undici/compare/v6.24.1...v6.25.0) #### What's Changed **Full Changelog**: <nodejs/undici@v6.24.1...v6.25.0> ### [`v6.24.1`](https://redirect.github.com/nodejs/undici/releases/tag/v6.24.1) [Compare Source](https://redirect.github.com/nodejs/undici/compare/v6.24.0...v6.24.1) **Full Changelog**: <nodejs/undici@v6.24.0...v6.24.1> ### [`v6.24.0`](https://redirect.github.com/nodejs/undici/releases/tag/v6.24.0) [Compare Source](https://redirect.github.com/nodejs/undici/compare/v6.23.0...v6.24.0) ### Undici v6.24.0 Security Release Notes (LTS) This release backports fixes for security vulnerabilities affecting the v6 line. #### Upgrade guidance All users on v6 should upgrade to **v6.24.0** or later. #### Fixed advisories - [GHSA-2mjp-6q6p-2qxm](https://redirect.github.com/nodejs/undici/security/advisories/GHSA-2mjp-6q6p-2qxm) / CVE-2026-1525 (Medium)\ Inconsistent interpretation of HTTP requests (request/response smuggling class issue). - [GHSA-f269-vfmq-vjvj](https://redirect.github.com/nodejs/undici/security/advisories/GHSA-f269-vfmq-vjvj) / CVE-2026-1528 (High)\ Malicious WebSocket 64-bit frame length handling could crash the client. - [GHSA-4992-7rv2-5pvq](https://redirect.github.com/nodejs/undici/security/advisories/GHSA-4992-7rv2-5pvq) / CVE-2026-1527 (Medium)\ CRLF injection via the `upgrade` option. - [GHSA-v9p9-hfj2-hcw8](https://redirect.github.com/nodejs/undici/security/advisories/GHSA-v9p9-hfj2-hcw8) / CVE-2026-2229 (High)\ Unhandled exception from invalid `server_max_window_bits` in WebSocket permessage-deflate negotiation. - [GHSA-vrm6-8vpv-qv8q](https://redirect.github.com/nodejs/undici/security/advisories/GHSA-vrm6-8vpv-qv8q) / CVE-2026-1526 (High)\ Unbounded memory consumption in WebSocket permessage-deflate decompression. #### Not applicable to v6 - [GHSA-phc3-fgpg-7m6h](https://redirect.github.com/nodejs/undici/security/advisories/GHSA-phc3-fgpg-7m6h) / CVE-2026-2581 affects `>= 7.17.0 < 7.24.0` only. #### Affected and patched ranges (v6) - CVE-2026-1525: affected `< 6.24.0`, patched `6.24.0` - CVE-2026-1528: affected `>= 6.0.0 < 6.24.0`, patched `6.24.0` - CVE-2026-1527: affected `< 6.24.0`, patched `6.24.0` - CVE-2026-2229: affected `< 6.24.0`, patched `6.24.0` - CVE-2026-1526: affected `< 6.24.0`, patched `6.24.0` #### References - GitHub Security Advisories: <https://github.com/nodejs/undici/security/advisories> - NVD CVE-2026-1525: <https://nvd.nist.gov/vuln/detail/CVE-2026-1525> - NVD CVE-2026-1528: <https://nvd.nist.gov/vuln/detail/CVE-2026-1528> - NVD CVE-2026-1527: <https://nvd.nist.gov/vuln/detail/CVE-2026-1527> - NVD CVE-2026-2229: <https://nvd.nist.gov/vuln/detail/CVE-2026-2229> - NVD CVE-2026-1526: <https://nvd.nist.gov/vuln/detail/CVE-2026-1526> </details> --- ### Configuration 📅 **Schedule**: (in timezone Etc/UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/vig-os/commit-action). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNTkuMiIsInVwZGF0ZWRJblZlciI6IjQzLjI1OS4yIiwidGFyZ2V0QnJhbmNoIjoiZGV2IiwibGFiZWxzIjpbXX0=-->
Renovate opened one PR per npm package, and every one of them touched both `package-lock.json` and `CHANGELOG.md`. After #41 merged, all six conflicted with `dev` and with each other, so landing them serially would mean six rebase/regenerate/re-run-CI cycles to ship six dev-dependency bumps. Batch them onto one branch instead and regenerate the lockfile once, rather than hand-resolving lockfile conflicts six times: jest 29.7.0 -> 30.4.2 (#55) @types/jest 29.5.x -> 30.0.0 (#55) @typescript-eslint/* 6.13.0 -> 8.64.0 (#56) @vercel/ncc 0.38.4 -> 0.44.1 (#46) ts-jest 29.1.x -> 29.4.11 (#45) prettier 3.1.x -> 3.9.5 (#47) tsx 4.7.x -> 4.23.1 (#48) All six are development-only; none ships in the bundled `dist/`. Side effect worth noting: `ts-jest` 29.4.11 no longer depends on `handlebars`, which clears the only `critical` advisory. Known dev-dependency vulnerabilities drop from 10 to 5 (remaining: @babel/core, brace-expansion, flatted, js-yaml, picomatch — all reachable only through eslint 8, which is a separate migration). `dist/` is deliberately not rebuilt here; the release cycle owns it. Verified locally: eslint clean, tsc clean, 84/84 jest tests pass, ncc 0.44.1 bundles a loadable entrypoint, and the full prek suite is green.
## Batch six Renovate dev-dependency PRs into one Supersedes **#45, #46, #47, #48, #55, #56** — all green individually, all mutually conflicting. ### Why batch Renovate opens one PR per npm package, and every one of them touches both `package-lock.json` and `CHANGELOG.md`. Once #41 merged, all six went `CONFLICTING/DIRTY` against `dev` *and* against each other. Landing them serially means six rounds of rebase → regenerate lockfile → re-run CI → merge, where each merge re-dirties the remaining five. Batching regenerates the lockfile **once** off `dev`, rather than hand-resolving `package-lock.json` conflicts six times. One CI run, one merge. Built by applying the bumps to a fresh branch off `dev` (not by merging the six Renovate branches, which would have meant six lockfile conflict resolutions). ### What's in it | Package | From | To | Supersedes | |---|---|---|---| | `jest` | `29.7.0` | `30.4.2` | #55 | | `@types/jest` | `^29.5.0` | `30.0.0` | #55 | | `@typescript-eslint/eslint-plugin` | `6.13.0` | `8.64.0` | #56 | | `@typescript-eslint/parser` | `6.13.0` | `8.64.0` | #56 | | `@vercel/ncc` | `0.38.4` | `0.44.1` | #46 | | `ts-jest` | `^29.1.1` | `29.4.11` | #45 | | `prettier` | `^3.1.0` | `3.9.5` | #47 | | `tsx` | `^4.7.0` | `4.23.1` | #48 | All development-only. None ships in the bundled `dist/`. `npm install` resolved every one cleanly — no `ERESOLVE`, no peer conflicts. `typescript-eslint` v8 works against the current `eslint` 8.57 (peer range `^8.57.0 || ^9.0.0`), so it lands safely *without* the ESLint 10 migration. ### Security side effect `ts-jest` `29.4.11` no longer depends on `handlebars` — **this clears the only `critical` advisory.** Known dev-dependency vulnerabilities drop **10 → 5**: ``` before: critical=1 high=6 moderate=2 low=1 (10) after: critical=0 high=2 moderate=2 low=1 ( 5) ``` Remaining: `@babel/core`, `brace-expansion`, `flatted`, `js-yaml`, `picomatch` — all reachable only through `eslint` 8, so they clear with the ESLint 10 / flat-config migration, not here. ### Not in this PR - **`dist/` is deliberately not rebuilt** — the release cycle owns it. Note the `@vercel/ncc` bump changes the bundler, so the next `dist/` rebuild will produce a different bundle; that is expected and belongs to that cycle. - **#53 (eslint v10)** stays out — it needs the `.eslintrc.json` → flat-config migration, since ESLint 10 removed the legacy config path. This PR's `typescript-eslint` v8 bump is a *prerequisite* for it (v6 hard-crashes under ESLint 10 with `TypeError: scopeManager.addGlobals is not a function`). - **#49 / #50 / #51 (`@actions/*` majors)** stay out — all three are ESM-only and need a coordinated ESM migration; `ncc` cannot bundle them into the current CJS build. Tracked separately. ### Verification (local) - `npm run lint` — clean (eslint 8.57 + typescript-eslint 8.64) - `npm run build` — `tsc` clean - `npm test` — **84/84 pass**, 3 suites - `npm run bundle` — `ncc 0.44.1` bundles; entrypoint loads under `node` - `just precommit` — full suite green
ESLint 9 made flat config the default; ESLint 10 removed the legacy `.eslintrc` path entirely, and `ESLINT_USE_FLAT_CONFIG=false` no longer opts back in. So eslint v10 cannot land as a dependency bump (Renovate's #53) — the config has to move first. Port `.eslintrc.json` to `eslint.config.mjs` with no intended behavior change: same base configs (`eslint:recommended` + typescript-eslint `recommended`), the same two rule overrides, and the node/es6/jest `env`s re-expressed as `languageOptions.globals` (flat config has no `env`). Replace `@typescript-eslint/eslint-plugin` + `@typescript-eslint/parser` with the `typescript-eslint` meta package — the canonical v8 flat-config entry point, which composes the `eslint-recommended` rule disables correctly rather than requiring us to hand-wire them. This is unblocked by #57, which bumped typescript-eslint to 8.64.0 (peer range `eslint: ^8.57.0 || ^9.0.0 || ^10.0.0`). At 6.21.0 it hard-crashed under ESLint 10 with `TypeError: scopeManager.addGlobals is not a function`. Verified: `npx eslint src` lints all 8 source files with rules firing (negative control confirmed it catches an injected violation); tsc clean; 84/84 tests pass; full prek suite green. Note: `npm run lint` still only reaches one file, because the script's `src/**/*.ts` glob is expanded by sh (no globstar) down to `src/*/*.ts`. That is a pre-existing bug, not introduced here, and is left for a follow-up rather than folded in — fixing it surfaces 29 errors and 17 warnings across the real source and would reformat all 8 files, which does not belong in a config migration. Refs: #64
## Migrate ESLint to flat config + v10 Closes #64. Supersedes Renovate's **#53**, which could not work as a bump. ### Why a bump wasn't enough ESLint 9 made flat config the default; **ESLint 10 removed the legacy `.eslintrc` path entirely**, and `ESLINT_USE_FLAT_CONFIG=false` no longer opts back in: ``` ESLint couldn't find an eslint.config.(js|mjs|cjs) file. ``` There was a second blocker until recently: `@[email protected]` **hard-crashed** under ESLint 10 (its bundled `[email protected]` yields a scope manager that ESLint 10's `SourceCode.finalize()` rejects): ``` TypeError: scopeManager.addGlobals is not a function ``` **#57 cleared that** by bumping typescript-eslint to `8.64.0`, whose peer range is `eslint: ^8.57.0 || ^9.0.0 || ^10.0.0`. So the plugin side was already ready; only the config format was left. ### What changed - `.eslintrc.json` → **`eslint.config.mjs`**. Faithful port, no intended behavior change: same base configs (`eslint:recommended` + typescript-eslint `recommended`), the same two rule overrides (`no-explicit-any: warn`, `explicit-function-return-type: off`), and the `node`/`es6`/`jest` `env`s re-expressed as `languageOptions.globals` (flat config has no `env`). - `eslint` `8.57` → `10.7.0`. - `@typescript-eslint/eslint-plugin` + `@typescript-eslint/parser` → the **`typescript-eslint`** meta package. This is the canonical v8 flat-config entry point and composes the `eslint-recommended` rule-disables correctly, instead of us hand-wiring them. Both packages remain installed transitively. - Adds `@eslint/js` and `globals` (the flat-config equivalents of the `extends` and `env` keys that went away). Node 24 satisfies ESLint 10's engines (`^20.19.0 || ^22.13.0 || >=24`). ### Verification - `npx eslint src` — lints **all 8** source files, rules firing correctly. - **Negative control** — injected `const __probe: any = 1; let __unused = __probe;` into `src/commit.ts` and confirmed ESLint caught it (`prefer-const`, `@typescript-eslint/no-unused-vars`, `no-explicit-any`), then reverted. The config is not silently linting nothing. - `tsc` clean · **84/84 tests pass** · `just precommit` fully green. - `dist/` untouched. ###⚠️ Found while doing this: `npm run lint` has never linted the real source Not introduced here, and **not fixed here** — filed separately. The lint and format scripts use `src/**/*.ts`. npm runs scripts through `sh`, which has no globstar, so `**` degrades to `*` and the pattern collapses to `src/*/*.ts`: ```console $ sh -c 'echo src/**/*.ts' src/__tests__/setup.ts ``` **One file.** `src/commit.ts`, `src/commit-runner.ts`, and `src/retry.ts` have never been linted or formatted, and the "Lint & Format" CI job has been passing on that basis. Running ESLint over the real tree surfaces **29 errors and 17 warnings across 8 files**, and `prettier --list-different src` reports **all 8 files** as unformatted. Most errors are `no-require-imports` in test mocks (defensible in tests, needs a rule override). The only two in production source are minor and **neither is a correctness bug**: - `src/commit-runner.ts:177` — `preserve-caught-error` (no `cause` on a rethrow; new v10 rule) - `src/commit.ts:85` — `no-useless-assignment` (dead initializer on `bytesRead`; harmless) I deliberately kept that out of this PR: fixing the glob means triaging 46 findings and reformatting the entire source, which has a different risk profile and would make both changes unreviewable. This PR's ESLint 10 support is verified directly via `npx eslint src` regardless of the script bug.
The push trigger's paths filter still carried the Python scaffold's '**.py', a leftover from the devkit CodeQL workflow. cf5e93f pointed the language matrix at javascript-typescript but left this filter, so push-to-main analysis never fired for the TypeScript source this repo ships. Filter on the paths that matter here: '**.ts', '**.js', 'package*.json', and workflow files. Marked as a LOCAL FIX divergence from the scaffold; the upstream fix is tracked by the language-aware scaffold work in vig-os/devkit#1027 / vig-os/devkit#1039. Refs: #61
The push trigger's `paths` filter still carried the Python scaffold's `**.py`, so push-to-main CodeQL analysis never fired for the TypeScript source this repo ships (`cf5e93f` switched the language matrix but left the filter). Filter on `**.ts`, `**.js`, `package*.json`, and workflow files instead. Marked as a LOCAL FIX divergence from the devkit scaffold, tracked upstream by vig-os/devkit#1027 / vig-os/devkit#1039. Closes #61
Pre-release metadata fixes from #63: - `action.yml` `author` was "Sync Issues Bot" (copy-paste from `sync-issues-action`) → "vigOS" (per LICENSE copyright holder). - README usage example pinned `@v0.1.5` → `@v0.2.0`, and the obsolete "pin `@main`" note is dropped — the inline `createTree` optimization it referenced shipped in v0.2.0 (#19). Verified `MAX_ATTEMPTS` in the example is also in v0.2.0. - Changelog entry under Unreleased. Remaining #63 items handled operationally: dev⊇main already reconciled by the sync flow; `release/0.2.0` deletion pending (permission-gated, noted on the issue). Refs: #63
The committed dist/index.js on dev was built against an older undici than the current lockfile (the 6.23.0 -> 6.27.0 bump). Rebuild with ncc so the shipped artifact matches src/ and the dependency tree before the freshness gate lands. Refs: #59
Consumers run dist/index.js directly, so a forgotten 'just bundle' ships a stale artifact while tests still pass against src/. Add a consumer-owned dist-check workflow that rebuilds the bundle on every PR to dev/release/main and fails when the committed dist/index.js drifts, and replace the release-extension no-op with the same verification against finalize_sha so a stale bundle rolls the release back before the tag is cut. Both verify dist/index.js only: it is the sole runtime artifact and is build-location independent, unlike the path-dependent tsc declaration byproducts under dist/src/. Toolchain setup mirrors ci.yml (resolve-toolchain + setup-devkit-toolchain) so the rebuild uses the pinned dev-shell Node. Refs: #59
Closes #59. Two commits: 1. `build(dist): rebuild bundle` — **dev's committed bundle was stale** (built before the undici 6.27.0 bump), which is exactly the drift this issue targets. Rebuilt with the pinned dev-shell toolchain; reviewer-verified reproducible (independent rebuild produces zero diff). 2. The gate itself: - New consumer-owned `dist-check.yml` (PRs to `dev`/`release/**`/`main`): rebuild with the devkit toolchain, fail if the committed `dist/index.js` differs. Job name `Dist Check` is contractual (required check, #60). - `release-extension.yml` no-op replaced with release-time verification of `inputs.finalize_sha` — a stale bundle fails the `extension` job and triggers release.yml's existing rollback. `workflow_call` inputs contract unchanged. Deviation from the issue text, deliberate: the gate diffs `dist/index.js` (the sole runtime artifact, build-location independent) rather than `dist/` — the tree also carries 32 accidentally-committed tsc byproducts whose `.d.ts.map` files embed absolute paths and would make a whole-tree diff permanently red in CI. Cleanup of that cruft is a separate follow-up. Negative test: injected marker into `dist/index.js` → gate exits 1; restored → 0. This PR also exercises the positive path via its own `Dist Check` run.
Gating dev made every Renovate runtime-dependency bump fail Dist Check until someone rebuilt the bundle in-PR, with no payoff: nothing ships from dev (only tags ship). Staleness inherited from dev now surfaces on the release/X.Y.Z -> main draft PR right after prepare-release and is fixed by a bugfix PR to the release branch; the release-extension finalize-time verification remains the hard guarantee for tags. The Dev protection ruleset's required checks were reduced to CI Summary accordingly (settings change, applied separately). Refs: #71
Closes #71 (follow-up to #59). Drops `dev` from `dist-check.yml`'s triggers so Renovate runtime-dep bumps no longer fail on a stale bundle — nothing ships from `dev`. By design, staleness inherited from `dev` now surfaces on the `release/X.Y.Z → main` draft PR right after `prepare-release` (Dist Check still runs there) and is fixed by a bugfix PR to the release branch; `release-extension.yml`'s finalize-time verification remains the hard tag guarantee. Already applied separately: Dev protection ruleset required checks reduced to `CI Summary` (done before this PR so it wouldn't hang on an expected-but-never-reported check).
dist/ tracked 32 tsc/ncc declaration byproducts under dist/src/ alongside the one real artifact, dist/index.js. tsconfig.json sets outDir ./dist with declaration + declarationMap, so both `npm run build` and `npm run bundle` emit them, while the .gitignore rule meant to exclude them (dist/__tests__) never matched their actual path (dist/src/__tests__). Their .d.ts.map files embed absolute file:// source paths, so they were regenerated differently at every checkout location -- which is what forced the #59 freshness gate to be scoped to dist/index.js rather than dist/. Untrack them, replace the dead rule with `dist/*` plus a `!dist/index.js` re-admit, and broaden both gates to the whole tree. The gates now test with `git status --porcelain -- dist/` rather than `git diff`, so uncommitted build output fails them too, not only drift in the committed bundle. Refs: #70
#73) Closes #70. ## What `dist/` tracked **32 declaration byproducts** under `dist/src/**` alongside the one real artifact, `dist/index.js`. The `.gitignore` rule meant to exclude them — `dist/__tests__` — never matched their actual path, `dist/src/__tests__`. Root cause is broader than the issue assumed: `tsconfig.json` sets `outDir: ./dist` with `declaration` + `declarationMap`, so **both `npm run build` (tsc) and `npm run bundle` (ncc)** emit them. ncc's own output lists `dist/src/commit.d.ts` among its assets — a plain `just bundle` is enough to regenerate all 17 of them. ## Changes 1. `git rm -r dist/src` — untrack the byproducts. 2. `.gitignore`: dead `dist/__tests__` rule → `dist/*` + `!dist/index.js`, so only the runtime artifact `action.yml` executes is tracked, and *anything* the build drops into `dist/` is ignored by default. 3. Both freshness gates (`dist-check.yml`, `release-extension.yml`) broadened from `dist/index.js` to the whole `dist/` tree — now possible because the location-dependent `.d.ts.map` files (which embed absolute `file://` paths, and which forced #59 to scope narrowly) are gone from the index. The gates now test `git status --porcelain -- dist/` instead of `git diff --exit-code`. That is strictly stronger: `git diff` only sees *tracked* files, so build output that ncc starts emitting and nobody commits would slip through. `git status` catches both drift and uncommitted artifacts. ## Verification Simulated CI in a fresh clone of this branch (`npm ci` → `npm run bundle`): - **No false positive** — ncc regenerates all 17 byproducts under `dist/src/`, and the gate is clean: `git status --porcelain -- dist/` is empty. This is the case that matters, since the gate rebuilds before checking. - **Still fails on drift** — appending to `src/retry.ts` and rebuilding yields ` M dist/index.js` → gate exits 1. - **Catches the new case** — an artifact emitted but untracked is flagged, where the old `git diff` gate reported clean. `just precommit` (full suite) green. Refs: #70
The @actions/* toolkit is ESM-only at its next major -- its exports map has no "require" condition at all -- so @actions/core v3, @actions/github v9 and @actions/http-client v4 could not land individually and move together here. - package.json: "type": "module"; drop the @actions/http-client and undici overrides. The http-client pin (3.0.2) was what blocked the v4 major, and the undici pin is now redundant: http-client v4 depends on undici ^6.23.0, which resolves to the same 6.27.0 the pin forced. npm audit is clean. - tsconfig: module/moduleResolution -> nodenext; relative imports carry explicit .js extensions. - ncc now emits an ESM bundle plus a dist/package.json declaring the bundle's module type. Track it alongside dist/index.js and re-admit it in .gitignore, which #70 had narrowed to dist/index.js alone. - Jest runs in ESM mode (--experimental-vm-modules): module mocks move from jest.mock + a __mocks__ manual mock to jest.unstable_mockModule with dynamic imports, so src/__tests__/setup.ts is gone and each suite registers its own mocks. All 84 tests preserved; titles and assertion counts unchanged. Two things the migration surfaced, both invisible to the test suite: The CJS `require.main === module` entry guard does not survive bundling to ESM. ncc rewrites it to a webpack shim that evaluates false, so the bundled action loaded, exited 0, and committed nothing -- a silent no-op. Replaced with an import.meta.url/argv[1] comparison and verified by executing the bundle: it now logs and reaches the API path. Classic `moduleResolution: node` ignores exports maps, so @octokit/core/types never resolved and every octokit.rest.* call in commit.ts silently degraded to `any` -- the whole signed-commit REST flow was unchecked. nodenext restores real Octokit types and the flow type-checks clean. Also unblocks TypeScript 7, which removes moduleResolution: node outright. Closes: #49, #50, #51 Refs: #58, #54
Nothing in this repo ever ran the artifact consumers actually execute. The unit tests import main() directly, and the repo dogfoods commit-action at a pinned released SHA -- never at ./ -- so dist/index.js was never exercised. That gap is not theoretical: the ESM migration found that the CommonJS `require.main === module` entry guard does not survive bundling to ESM. The bundled action loaded, exited 0, and committed nothing, with 84 unit tests passing throughout. Run the action as a consumer does (`uses: ./`) on every PR: create a scratch branch, commit a file to it through the real createBlob -> createTree -> createCommit -> updateRef flow, then assert via the API that the commit exists, is signed, and carries the expected content. Delete the branch afterwards, on success or failure. A non-empty commit-sha output is the specific assertion that catches the silent no-op. The signature assertion keeps the action's core promise honest: the repo's "Signed commits" ruleset covers ~ALL branches, so an unsigned commit would be rejected by the API outright. Skipped on fork PRs, whose GITHUB_TOKEN is read-only and cannot create the scratch branch. Refs: #58
Refs #58. Closes #49, #50, #51. Unblocks #54. The `@actions/*` toolkit is ESM-only at its next major — its `exports` map has no `"require"` condition at all — so `@actions/core` v3, `@actions/github` v9 and `@actions/http-client` v4 cannot land individually. They move together here. ## Changes - **`package.json`** — `"type": "module"`. Dropped the `@actions/http-client` and `undici` `overrides`: the `http-client` pin (`3.0.2`) was what actually blocked the v4 major, and the `undici` pin is now redundant, since `http-client` v4 depends on `undici: ^6.23.0` which resolves to the same `6.27.0` the pin was added to force. `npm audit --omit=dev` reports 0 vulnerabilities. - **`tsconfig.json`** — `module`/`moduleResolution` → `nodenext`; relative imports carry explicit `.js` extensions. - **Bundling** — ncc handles ESM: it emits an ESM `dist/index.js` **plus a `dist/package.json`** declaring the bundle's module type. That second file is real shipped output, so it is now tracked and re-admitted in `.gitignore` (which #70 had just narrowed to `dist/index.js` alone — it would otherwise have been silently dropped). - **Jest** — ESM mode (`--experimental-vm-modules`). Mocks move from `jest.mock` + a `__mocks__` manual mock to `jest.unstable_mockModule` + dynamic imports; `src/__tests__/setup.ts` is deleted and each suite registers its own mocks. **All 84 tests preserved** — `describe`/`it` titles and `expect()` counts are byte-identical to `HEAD`, no skips. ## Two latent problems this surfaced — both invisible to the test suite **1. The bundled action was a silent no-op.** The CJS `require.main === module` entry guard does not survive bundling to ESM: ncc rewrites it to `__nccwpck_require__.c[__nccwpck_require__.s] === module`, which evaluates false. Executing that bundle: ```console $ node dist/index.js # GITHUB_TOKEN, TARGET_BRANCH, ... all set $ echo $? 0 ``` No output. `main()` never ran — the action would have **exited 0 having committed nothing**. Replaced with an ESM guard comparing `import.meta.url` against `pathToFileURL(process.argv[1])`. Same invocation now: ```console $ node dist/index.js Using TARGET_BRANCH: dev No files to commit ``` Nothing in CI would have caught this: unit tests import `main()` directly, and the repo dogfoods `commit-action` at a pinned released SHA, so no workflow ever executes the locally-built bundle. **2. The signed-commit REST flow was never type-checked.** Classic `moduleResolution: node` ignores `exports` maps, so `@octokit/core/types` never resolved and every `octokit.rest.*` call in `src/commit.ts` silently degraded to `any`. Probe on the old config — `r.data.sha` typed as `any`; under `nodenext` it types as `string`. The flow now type-checks clean against real Octokit types (no latent errors surfaced — `commit.ts` was already correct, just unverified). ## Verification - `npm test` — **84/84 passing**, 3/3 suites. - `npx tsc --noEmit` — **0 errors**. - `npm run test:coverage` — 92.5% statements / 82.1% branches, above the 70% thresholds. - `npm run bundle` — clean ESM bundle. - **Bundle executed on Node 24** (see above) — loads, `main()` fires, reaches the API path. - `just precommit` (full suite) — green. ## Not yet verified The **live REST flow against the real GitHub API** (`createBlob` → `createTree` → `createCommit` → `updateRef`) under Octokit v7 has not been exercised — only type-checked. Per the issue, unit tests are explicitly not sufficient evidence here. Worth an end-to-end run before this reaches a tag. Refs: #58
npm runs scripts through sh, which has no globstar. In `eslint src/**/*.ts` the `**` degrades to a single `*`, so the pattern collapses to `src/*/*.ts` -- files exactly one directory deep. That matched a single test-setup file. src/commit.ts, src/commit-runner.ts and src/retry.ts, the entire production surface, were linted and formatted by neither script, and CI's Lint & Format job has been green on that basis since the scripts were written. Pass the directory instead and let eslint and prettier expand globs internally, with correct `**` semantics. The flat config already scopes to src/**/*.ts via its `files` key, so coverage is unchanged in intent -- only in reality. eslint now checks 6 files rather than 1. Linting the real tree surfaced two findings in production code, both fixed here; neither is a correctness bug: - commit-runner rethrew a git status failure without attaching the original error, discarding the underlying execSync cause (preserve-caught-error). - isBinaryFromStat initialized bytesRead to 0 and always overwrote it before reading (no-useless-assignment). Dropping the initializer also lets the compiler's definite-assignment analysis see the read, which it now proves. The ~25 no-require-imports findings this issue also catalogued are already gone: the ESM migration (#58) removed require() from the test suite entirely, so the planned src/__tests__ rule override is no longer needed. The whole-tree prettier reformat follows as its own commit, so it can be reviewed independently of these substantive fixes. Refs: #66
Purely mechanical; no behavior change. src/ had never been formatted, because `npm run format` globbed with src/**/*.ts and sh has no globstar, so the pattern only ever reached one file (#66, fixed in the preceding commit). This applies the repo's own checked-in .prettierrc -- singleQuote, printWidth 100 -- which the source has never matched. Most of the diff is the resulting quote flip and re-wrapping, not logic. Kept as its own commit so it can be reviewed, or dropped, independently of the substantive fixes it follows. `npx prettier --list-different src` is now empty; tsc, eslint and all 84 tests are unchanged and green. Refs: #66
Picks up the preserve-caught-error and no-useless-assignment fixes and the prettier reformat. Keeps dist/ fresh for the release-boundary gates, and for the e2e smoke job, which executes the committed bundle rather than the source. Refs: #66
Nothing enforced either tool. The scaffold-managed ci.yml has a "Lint & Format" job, but it runs `just precommit` -- the prek hook suite, which contains no JS linter or formatter. `npm run lint` and `npm run format` were only ever run by hand. That is how the broken globs survived for the life of the repo: the scripts linted one test-setup file, and nothing ever ran them to notice. Fixing the scripts without gating them would let them rot again the same way. Add a consumer-owned js-quality workflow -- a separate file, since ci.yml is managed and must not be edited, same arrangement as dist-check.yml. It runs `just lint` and a new `just format-check`, the same recipes a developer runs locally, so a green CI means a green tree rather than a CI-only invocation that can drift. format-check is the read-only counterpart of `just format`: prettier --check fails on unformatted code instead of rewriting it. Refs: #66
Closes #66. `npm run lint` and `npm run format` have never checked the real source. Both globbed with `src/**/*.ts`, but npm runs scripts through `sh`, which has no globstar — so `**` degrades to a single `*` and the pattern collapses to `src/*/*.ts`, matching only files exactly one directory deep. In practice: one test-setup file. `commit.ts`, `commit-runner.ts` and `retry.ts` — the whole production surface — were matched by neither script. Fixed by passing the directory (`eslint src`, `prettier --write src`) and letting each tool expand its own globs. eslint now checks **6 files instead of 1**. ## Four commits, deliberately separate **1. `fix(npm)` — the script fix + the two production findings.** Linting the real tree surfaced two, both fixed here, neither a correctness bug: - `commit-runner.ts` rethrew a `git status` failure without attaching the original error, discarding the underlying `execSync` cause (`preserve-caught-error`). - `isBinaryFromStat` initialised `bytesRead` to `0` and always overwrote it before reading (`no-useless-assignment`). Dropping the initialiser also lets the compiler's definite-assignment analysis see the read — which it now proves, so the change is verified rather than assumed. **2. `style(src)` — the whole-tree prettier reformat.** Mechanical, no behavior change; isolated so it can be reviewed or dropped independently. Note what it actually applies: the repo's own checked-in `.prettierrc` (`singleQuote: true`, `printWidth: 100`), which **the source has never matched** — it's all double-quoted at ~80 cols, precisely because `format` never ran on it. So most of the ~609/765-line diff is the resulting quote flip and re-wrapping, not logic. **3. `build(dist)` — rebuild the bundle.** Picks up commits 1–2. Needed because the e2e smoke job executes the *committed* bundle, not the source. **4. `ci(lint)` — gate PRs on eslint and prettier.** The root cause was never just the glob: **nothing ran these tools at all.** The scaffold-managed `ci.yml` has a "Lint & Format" job, but it runs `just precommit` — the prek hook suite, which contains no JS linter or formatter. That is how the broken globs survived for the life of the repo, and fixing the scripts without a gate would let them rot again the same way. Adds a consumer-owned `js-quality` workflow (a separate file, since `ci.yml` is managed and must not be edited — the same arrangement `dist-check.yml` uses). It runs `just lint` and a new read-only `just format-check` recipe, i.e. the same recipes a developer runs locally, so a green CI means a green tree rather than a CI-only invocation that can drift. ## Scope note The issue also catalogued ~25 `no-require-imports` findings and planned a `src/__tests__` rule override for them. **Both are now moot**: the ESM migration (#58) removed `require()` from the test suite entirely. What was a 46-finding triage is down to the two above. ## Verification - **`ESLint & Prettier` — the new gate ran on this PR and passed**, executing `eslint src` and `prettier --check src` for real (`All matched files use Prettier code style!`), not vacuously. - **`E2E Smoke` passed**, so the rebuilt bundle still performs a genuine signed commit against the live API — the reformat and both source fixes are verified end to end, not on faith. - `npm test` — 84/84 passing. `npx tsc --noEmit` — 0 errors. `just precommit` — green. Refs: #66
Bump DEVKIT_VERSION to 1.2.0 and re-scaffold. 1.2.0 ships the two keys issue #62 was blocked on (vig-os/devkit#1044 DEVKIT_TAG_PREFIX and #1045 DEVKIT_FLOATING_TAGS), so declare the per-repo tag scheme in .vig-os: DEVKIT_TAG_PREFIX=v # restore v-prefixed pipeline tags (vX.Y.Z) DEVKIT_FLOATING_TAGS=major,minor # auto-move v0 / v0.X at promote Both were previously moved by hand. Bump the vigos flake input to 1.2.0 to match the scaffold image (they must move together, else the shipped JSONC provenance banner arrives without its check-json exclude and every commit fails). The 1.2.0 language-aware managed .gitignore (devkit#1024) dropped three ignores this Node + flake-hooks repo relies on. Restore them so the pre-commit suite and the dist-check gate stay green: - flake-generated .pre-commit-config.yaml (a /nix/store symlink from the hooks = { } opt-in) re-ignored in the managed root .gitignore, the only committed mechanism for a repo-root path; - dist/src/ tsc/ncc byproducts re-ignored via a new, upgrade-proof dist/.gitignore (nested, team-owned, survives scaffold upgrades). Add README pinning guidance (@v0 floating major, exact @vX.Y.Z, or SHA) and a changelog entry. Refs: #62
## What & why Adopt vigOS devkit `1.2.0` and declare the per-repo release tag scheme that issue #62 was blocked on. 1.2.0 ships both blockers (`DEVKIT_TAG_PREFIX` vig-os/devkit#1044 and `DEVKIT_FLOATING_TAGS` vig-os/devkit#1045), so `.vig-os` now declares: ```ini DEVKIT_TAG_PREFIX=v # restore v-prefixed pipeline tags (vX.Y.Z) DEVKIT_FLOATING_TAGS=major,minor # auto-move v0 / v0.X at promote ``` Both floating tags were previously moved by hand. ## Deployment was broken out of the box — three regressions found & fixed Re-scaffolding onto 1.2.0 surfaced three fresh breakages (not in the release notes), each caught by running the real hook suite: 1. **`typos` scanned the vendored bundle.** The language-aware managed `.gitignore` (devkit #1024) dropped this repo's `dist/` handling, so `typos` ran over `dist/index.js` and failed on typos inside undici/octokit. → Re-ignored `dist/src/` byproducts via a new, upgrade-proof nested `dist/.gitignore`. 2. **`check-json` rejected `.vscode/settings.json`.** The scaffold added a JSONC provenance banner (#1053) but the compensating `check-json` exclude ships via the `vigos` flake input, still pinned to 1.1.0 — a silent version skew. → Bumped `vigos.url` to `?ref=1.2.0` and `nix flake update vigos`. 3. **The flake-generated `.pre-commit-config.yaml` (`/nix/store` symlink) was no longer gitignored** and would have been committed broken. → Re-ignored in the managed root `.gitignore` (the only committed mechanism for a repo-root path). Root causes filed upstream: vig-os/devkit#1092 (managed `.gitignore` drops consumer-required ignores) and vig-os/devkit#1093 (version skew ships the banner without its exclude). ## Also - README pinning guidance (`@v0` floating major, exact `@vX.Y.Z`, or SHA); the `@main` note was already dropped by #63. - `CHANGELOG.md` Unreleased entry. ## Verification - Full `just precommit` suite **green**; `just lint`/`format-check` clean; **84/84 jest tests** pass. - `dist-check` gate clean (bundle rebuild leaves `git status -- dist/` empty). - Tag-prefix/floating-tag wiring confirmed present in the scaffolded `resolve-toolchain` → `release.yml`/`release-core.yml`/`release-publish.yml` and the gated `floating-tags` job in `promote-release.yml`. ## Caveats - The `.pre-commit-config.yaml` ignore lives in the **managed** root `.gitignore`, so the next scaffold upgrade will drop it again (that is vig-os/devkit#1092); the `dist/.gitignore` fix *is* durable. Flagged inline. - Issue #62 step 4 (first pipeline release actually pushes `vX.Y.Z`, moves `v0`/`v0.X`, continuous changelog heading) can only be verified when a real release runs; the driving config is in place and consistent. Refs: #62
The Unreleased section accrued three separate `### Changed` blocks (plus interleaved Added/Fixed/Removed) as successive PRs each appended their own subsection. Regroup into a single block per change type in Keep a Changelog order (Added, Changed, Removed, Fixed) so the upcoming 0.3.0 freeze produces a clean, conventional entry. No bullet text changed; all 18 entries preserved. Refs: #62
Pre-release tidy for the 0.3.0 freeze (issue #62 step 0). The Unreleased section had three separate `### Changed` blocks interleaved with Added/Fixed/Removed, accreted as successive PRs each appended their own subsection. Regrouped into a single block per type in Keep a Changelog order (Added, Changed, Removed, Fixed). **No bullet text changed** — all 18 entries preserved verbatim (verified by count and diff); only subsection grouping/order changed. Refs: #62
Move Unreleased content to [0.3.0] - TBD and create fresh empty Unreleased section for continued development.
Release 0.3.0 failed in the automated release workflow (#79): the scaffolded release-core.yml applied the draft + approval gate to every release kind, so a release-candidate dispatch aborted against its still-draft PR. devkit 1.2.1 guards that gate behind release_kind=final (candidates gate on CI only), fixing the failure (vig-os/devkit#1095). Re-scaffolded onto 1.2.1 and bumped the vigos flake input and DEVKIT_VERSION to 1.2.1 (kept in sync). Reconciled the #76 manual workarounds now fixed upstream by vig-os/devkit#1092: - Removed the bespoke dist/.gitignore; the managed .gitignore now ignores the dist/src/ tsc/ncc declaration byproducts while keeping dist/index.js and dist/package.json tracked. - Moved the flake-generated .pre-commit-config.yaml symlink ignore to the new consumer-owned .gitignore.project (its #1092 auto-seed only fires when the store symlink resolves at scaffold time, which a direnv-mode container upgrade cannot do). Also restored DEVKIT_TAG_PREFIX=v and DEVKIT_FLOATING_TAGS=major,minor in .vig-os, which the 1.2.1 scaffold reset to defaults; the #62 tag scheme must survive the upgrade or 0.3.0 would ship bare X.Y.Z tags. Refs: #79
## What & why Adopt vigOS devkit `1.2.1` to unblock the **0.3.0** release, which failed in the automated release workflow (**Fixes #79**). **Root cause:** the scaffolded `release-core.yml` applied the draft + approval gate to *every* release kind, so a `release_kind=candidate` dispatch aborted against its still-draft PR (`ERROR: PR #N is still in draft`). devkit `1.2.1` guards that gate behind `release_kind=final` — candidates gate on CI only, the `main`-protecting approval is re-enforced at promote (vig-os/devkit#1095). ## Changes - **`release-core.yml`** — regenerated from the 1.2.1 scaffold; the draft + approval gate is now `release_kind=final`-only (the #79 fix). - **`flake.nix` / `flake.lock` / `.vig-os`** — `vigos` input and `DEVKIT_VERSION` bumped to `1.2.1` (kept in sync per devkit#1093). - **Reconciled the #76 manual workarounds now fixed upstream (devkit#1092):** - Removed the bespoke `dist/.gitignore`; the managed `.gitignore` now ignores the `dist/src/` `tsc`/`ncc` declaration byproducts while keeping `dist/index.js` + `dist/package.json` tracked. - Moved the flake-generated `.pre-commit-config.yaml` symlink ignore to the new consumer-owned **`.gitignore.project`** (the #1092 auto-seed only fires when the store symlink resolves at scaffold time, which a direnv-mode container upgrade can't do). - **Restored the #62 tag scheme in `.vig-os`** — the 1.2.1 scaffold reset `DEVKIT_TAG_PREFIX` and `DEVKIT_FLOATING_TAGS` to defaults; restored `v` / `major,minor` so 0.3.0 still ships `vX.Y.Z` tags and moves `v0` / `v0.X`. - **CHANGELOG** — updated the `[0.3.0]` devkit bullet to reflect shipping on 1.2.1 and the #79 fix. ## Verification - `just precommit` (full `prek` suite) green locally, including `no-commit-to-branch`. - Bundle rebuilt with the pinned toolchain (`npm ci && npm run bundle`); `dist/index.js` did not drift — the only `dist/` change is the intentional `dist/.gitignore` removal (`dist-check` parity). ## Note `gh issue develop` generated a `build/79-…` branch name, which the enforced branch-naming hook rejects (`build/` isn't an allowed prefix; dots aren't valid in the slug). This PR uses the compliant `chore/79-adopt-devkit-1-2-1`; the empty `build/79-adopt-devkit-1.2.1` branch it left on the remote can be deleted.
The file was the devkit template with every rule commented out, so it matched no files and served no purpose. As a sole-maintainer repo, code-owner review is not applicable: GitHub forbids self-approval, so any real CODEOWNERS entries would block the maintainer's own PRs. Remove the file instead of populating it. Refs: #83
c-vigo
added a commit
that referenced
this pull request
Jul 15, 2026
Closes #81. ## What A new project-owned workflow, `published-tag-smoke.yml`, that runs the **released artifact from its git tag** — the way a consumer pins it (`uses: vig-os/[email protected]`) — and asserts it produces a **signed** commit with the expected content. Sibling of `e2e-smoke`, which only exercises `uses: ./` from a branch checkout and so never covers the published tag ref after it is pushed. ## Why it targets `main` directly `workflow_dispatch` is only dispatchable when the workflow lives on the **default branch**. This is a deliberate, scoped deviation from the dev-first flow so we can trigger it for the already-pushed `v0.3.0-rc1`; `sync-main-to-dev` carries it back to `dev` for future releases. It is a brand-new file, so it does not touch the in-flight `release/0.3.0` PR (#78) or the devkit-managed release workflows. ## Design notes - **Triggers:** `push: tags: ['v*.*.*']` (matches RCs `v0.3.0-rc1` and finals `v0.3.0`; excludes the floating `v0`/`v0.X` tags that move on promotion) **and** `workflow_dispatch` with a `ref` input. - **Fires on tag push** because the release pipeline pushes tags with the **Release App** token (not `GITHUB_TOKEN`), so tag-push events trigger downstream workflows. - **`uses:` forbids expressions**, so the action is checked out **at the tag** into a path and run via `uses: ./action-under-test` — a faithful reproduction of a consumer pinning `@<tag>`. - **Assertions mirror `e2e-smoke`:** commit exists → is `verification.verified == true` → content round-trips; scratch branch deleted on exit. No recursion (scratch push is a branch, not a tag). ## Validating this release The `push` trigger will not retro-fire for the already-pushed `v0.3.0-rc1`. Once this merges to `main`, dispatch it manually against `v0.3.0-rc1`: ``` gh workflow run published-tag-smoke.yml --ref main -f ref=v0.3.0-rc1 ``` Local checks green: `actionlint` clean, `just precommit` (prek --all-files, incl. yamllint + shellcheck) all pass.
## Summary `.github/CODEOWNERS` was the devkit template with every rule commented out — it matched no files and served no purpose. Rather than populating it (the original plan), this **removes the file entirely**: this is a sole-maintainer repo, and GitHub forbids self-approval, so any real CODEOWNERS entries would block the maintainer's own PRs behind a code-owner review nobody can provide. Targets `release/0.3.0` so the removal reaches `main` with the imminent release (Scorecard scans the default branch) and flows back to `dev` via the main→dev sync. ## Notes - The `require_code_owner_review: true` toggle in the `main`/`release`/`dev` rulesets becomes a no-op without a CODEOWNERS file (harmless, but could be switched off for clarity). - OpenSSF Scorecard's Branch-Protection check will keep its "codeowners review is not required" warning; the other warnings (no approvers, no status checks, admin enforcement) are already addressed by the rulesets updated on 2026-07-14. If the alert persists at the next scan despite the improved score, dismissing it as won't-fix is the consistent follow-up. Refs: #83
c-vigo
marked this pull request as ready for review
July 15, 2026 14:31
c-vigo
self-requested a review
July 15, 2026 14:31
c-vigo
approved these changes
Jul 15, 2026
This was referenced Jul 15, 2026
Stopgap on release/0.3.0: the finalize job's "Build release artifact" step ran `just bundle` without `just sync`, so ncc (a devDependency) was absent from PATH and finalization exited 127, rolling back the release. Mirror of the upstream devkit fix (vig-os/devkit#1131); superseded on next re-scaffold. Refs: #90
## What Add `just sync` before `just bundle` in the `Build release artifact` step of `release-core.yml`, on `release/0.3.0`. ## Why The 0.3.0 release rolled back: `Finalize Release Core → Build release artifact` exited **127** because `just bundle` → `npm run bundle` → `ncc …`, and `ncc` (`@vercel/ncc`) is a devDependency only present after `npm ci`. The devkit toolchain provisions the dev-shell but not `node_modules`, so the bundler was missing from PATH. See RCA in #90 and the failed [run](https://github.com/vig-os/commit-action/actions/runs/29423806600). `just sync` (language-neutral: `npm ci` here) installs the deps first, matching every other build job. ## Note — stopgap `release-core.yml` is devkit-scaffolded. This is a local stopgap so 0.3.0 can be re-run **without waiting for a re-scaffold**. The durable fix is upstream in vig-os/devkit#1131 (CI green, merging into devkit `dev`); a future `DEVKIT_VERSION` bump will supersede this diff. Refs: #90
Set release date to 2026-07-15 in CHANGELOG.md Refs: #78
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release 0.3.0
This PR prepares release 0.3.0 for merge to main.
[0.3.0] - TBD
Added
js-qualityworkflow gates every PR onjust lintandjust format-check(a new read-only recipe backed byprettier --check src). Neither eslint nor prettier was enforced anywhere before: the scaffold-managedci.ymlhas a "Lint & Format" job, but it runs only the prek hook suite, which contains no JS linter or formatter. That is precisely how the broken globs above survived — the scripts were never run by anything but a human. Fixing them without a gate would have let them rot again the same way (issue [BUG] npm run lint/format only ever check one file — sh has no globstar, so src/**/*.ts collapses to src/*/*.ts #66).e2e-smokeworkflow executes the committed bundle against the real GitHub API on every PR, running the action the way a consumer does (uses: ./) rather than importing its source. It commits a file to a scratch branch through the full REST flow and asserts the commit exists, is signed, and carries the expected content, then deletes the branch. Nothing previously executeddist/index.js: the unit tests importmain()directly and the repo dogfoodscommit-actionat a pinned released SHA. That gap is not theoretical — the ESM migration found that the CommonJSrequire.main === moduleentry guard does not survive bundling to ESM, leaving the bundled action a silent no-op (exit 0, nothing committed) that 84 passing unit tests could not see (issue Migrate action to ESM (@actions/core v3, @actions/github v9, @actions/http-client v4) #58).dist/index.jscan never reach a tag. A new consumer-owneddist-checkworkflow rebuilds the bundle on every PR torelease/**/mainand fails when the committeddist/index.jsdiffers, and the release-timerelease-extensionhook re-verifies the finalized commit before it is tagged (rolling the release back on drift). Both rebuild with the pinned dev-shell toolchain (issue [FEATURE] Guarantee a fresh dist/ bundle on every tagged release (CI dist-check + release-extension verification) #59). The gate is deliberately scoped to the release boundary —devis not gated, since nothing ships fromdevand gating it would fail every Renovate runtime-dependency bump (issue [TASK] Scope Dist Check to the release boundary — drop it from dev PRs #71).Changed
1.2.0and declared the per-repo release tag scheme in.vig-os:DEVKIT_TAG_PREFIX=vrestores this repo's historicalv-prefixed tags (vX.Y.Z) through the release pipeline, andDEVKIT_FLOATING_TAGS=major,minorforce-moves the floatingv0/v0.Xtags to each promoted release automatically — both were previously moved by hand. Consumers can pin@v0(floating major), an exact@vX.Y.Z, or a SHA (issue [TASK] Adopt DEVKIT_TAG_PREFIX=v and floating major/minor tags once devkit ships them #62). The 1.2.0 scaffold's language-aware managed.gitignoredropped three ignores this Node/flake-hooks repo relies on; restored them so the pre-commit suite anddist-checkstay green (flake-generated.pre-commit-config.yamlsymlink re-ignored in the root.gitignore;dist/src/byproducts re-ignored via a new upgrade-proofdist/.gitignore) and bumped thevigosflake input to1.2.0to match the scaffold (issue [TASK] Adopt DEVKIT_TAG_PREFIX=v and floating major/minor tags once devkit ships them #62).@actions/*toolkit went ESM-only at its next major (norequirecondition in itsexportsmap at all), so@actions/corev3,@actions/githubv9 and@actions/http-clientv4 were unlandable individually and had to move together (issues build(npm): update dependency @actions/core to v3 #49, build(npm): update dependency @actions/github to v9 #50, build(npm): update dependency @actions/http-client to v4 #51). The package is now"type": "module", TypeScript resolves withmodule/moduleResolution: nodenext, relative imports carry explicit.jsextensions, andnccemits an ESM bundle (plus a smalldist/package.jsondeclaring the bundle's module type, now tracked alongsidedist/index.js). Jest runs in ESM mode: the module mocks moved fromjest.mock+ a__mocks__manual mock tojest.unstable_mockModulewith dynamic imports, and the oldsrc/__tests__/setup.tsis gone. All 84 tests are preserved unchanged (issue Migrate action to ESM (@actions/core v3, @actions/github v9, @actions/http-client v4) #58).moduleResolution: nodealso fixed a silent type hole: classic resolution ignoresexportsmaps, so@octokit/core/typesnever resolved and everyoctokit.rest.*call insrc/commit.tsdegraded toany— the entire signed-commit REST flow was unchecked. Those calls are now type-checked against real Octokit types. This additionally unblocks TypeScript 7, which removesmoduleResolution: nodeoutright (issue build(npm): update dependency typescript to v7 #54).@actions/http-clientandundicioverridespins. Thehttp-clientpin (3.0.2) was what actually blocked the v4 major, and theundicipin is now redundant:@actions/http-clientv4 depends onundici: ^6.23.0, which resolves to the same6.27.0the pin was added to force (npm auditreports no runtime vulnerabilities).eslint.config.mjs, replacing.eslintrc.json) and bumpedeslintfrom8.57to10.x. ESLint 9 made flat config the default and ESLint 10 removed the legacy.eslintrcpath entirely. The rule set is a faithful port — same base configs and the same two overrides — with thenode/es6/jestenvironments becominglanguageOptions.globals.@typescript-eslint/eslint-pluginand@typescript-eslint/parserare replaced by thetypescript-eslintmeta package, the canonical v8 flat-config entry point (issue Migrate ESLint to flat config and bump to v10 #64).undicifrom6.23.0to6.27.0(#41)jest29.7.0→30.4.2and@types/jest→30.0.0(#55);@typescript-eslint/eslint-pluginand@typescript-eslint/parser6.13.0→8.64.0(#56);@vercel/ncc0.38.4→0.44.1(#46);ts-jest→29.4.11(#45);prettier→3.9.5(#47);tsx→4.23.1(#48). Batched into one branch because each Renovate PR touchedpackage-lock.jsonandCHANGELOG.mdand so conflicted pairwise; the lockfile is regenerated once here rather than rebased six times. Side effect:ts-jest29.4.11dropshandlebars, clearing the onlycriticaladvisory — known dev-dependency vulnerabilities go from 10 to 5.createTree(percreateBloband per chainedcreateTreechunk) instead of wrapping the whole multi-call tree operation; a transient mid-batch failure now retries only the failing call rather than re-uploading already-succeeded blobs and tree chunks (issue refactor: apply retry at individual API call sites inside createTree #24).createTreeagainst oversized commit payloads: chunk boundaries are now payload-size-aware — a newcreateTreerequest starts once a chunk approachesTREE_ENTRY_BYTE_LIMIT(6 MiB) of approximate serialized content, in addition to the existingTREE_ENTRY_CHUNK_SIZE(100) entry cap (whichever limit is hit first). Text files whose size exceedsINLINE_CONTENT_SIZE_LIMIT(1 MiB) are now uploaded viacreateBlob(base64) instead of inlined, keeping requests well under GitHub's request-body limit for very large text change sets (issue Enhance createTree chunking: payload-size awareness and per-file threshold #22).node20tonode24ahead of GitHub removing the Node 20 Actions runtime on 2026-09-16 (issue [TASK] Upgrade action to support Node.js 24 runtime #14). Bumped@types/nodeto the v24 line and raised the TypeScripttarget/libtoES2023.action.ymlauthor(wasSync Issues Bot, copy-pasted fromsync-issues-action) and pinned the README Action usage example to@v0.2.0, dropping the now-obsolete@mainnote since the inlinecreateTreeoptimization shipped inv0.2.0(#63).Removed
dist/src/(.d.ts,.js, and.mapfiles) that had been committed by accident.tsconfig.jsonsetsoutDir: ./distwithdeclaration/declarationMap, so bothnpm run build(tsc) andnpm run bundle(ncc) emit them, while the.gitignorerule meant to exclude them (dist/__tests__) never matched their real path (dist/src/__tests__). The rule is nowdist/*plus a!dist/index.jsre-admit, so only the runtime artifact the action actually executes is tracked. Their.d.ts.mapfiles embed absolutefile://source paths and so were regenerated differently at every checkout location — which is what forced the [FEATURE] Guarantee a fresh dist/ bundle on every tagged release (CI dist-check + release-extension verification) #59 freshness gate to be scoped todist/index.js; with them gone, both gates (dist-check,release-extension) now verify the wholedist/tree, and check it withgit statusrather thangit diffso that build output which is emitted but never committed also fails the gate (issue [TASK] Remove accidentally committed tsc byproducts under dist/src/ and fix the .gitignore rule #70).Fixed
npm run lintandnpm run formathad never checked the real source. Both globbed withsrc/**/*.ts, but npm runs scripts throughsh, which has no globstar — so**degraded to a single*and the pattern collapsed tosrc/*/*.ts, matching only files exactly one directory deep. In practice that was a single test-setup file;src/commit.ts,src/commit-runner.tsandsrc/retry.ts— the entire production surface — were matched by neither script. The scripts now pass the directory (eslint src,prettier --write src) and let each tool expand its own globs with correct**semantics (issue [BUG] npm run lint/format only ever check one file — sh has no globstar, so src/**/*.ts collapses to src/*/*.ts #66).causewhencommit-runnerrethrows agit statusfailure, so the underlyingexecSyncerror is no longer discarded (surfaced by the above; ESLint 10'spreserve-caught-error).bytesReadinisBinaryFromStat. Not a correctness bug — the value was always overwritten before being read — but it masked the read from the compiler's definite-assignment analysis (no-useless-assignment).