fix(ci): pass NODE_OPTIONS=--use-system-ca to clear grpc-tools tls install #199

Merged
julien merged 1 commits from fix/ci-grpc-tools-node-system-ca into main 2026-05-20 10:23:39 +02:00
2 changed files with 19 additions and 0 deletions
+12
View File
@@ -11,6 +11,18 @@ on:
push: push:
branches: [main] branches: [main]
# Node 24's bundled CA set does not include every intermediate the
# self-hosted runner's network path serves (the precompiled-binary
# CDN behind grpc-tools is the first surface where this surfaced).
# `--use-system-ca` tells Node to consult the OS CA store in
# addition to its bundled set — supported since Node 22 and the
# documented Node-team fix for exactly this class of TLS-chain
# rejection. The runner image (`catthehacker/ubuntu:act-22.04` per
# ADR-0015) carries the standard Ubuntu `ca-certificates` bundle,
# which validates the impacted chains.
env:
NODE_OPTIONS: --use-system-ca
jobs: jobs:
check: check:
runs-on: [self-hosted, on-prem] runs-on: [self-hosted, on-prem]
+7
View File
@@ -28,6 +28,13 @@ on:
- 'pnpm-lock.yaml' - 'pnpm-lock.yaml'
- '.gitea/workflows/docs-site.yml' - '.gitea/workflows/docs-site.yml'
# See `.gitea/workflows/ci.yml` for the rationale — Node 24's
# bundled CA set rejects some chains the runner's OS trust store
# validates, and `--use-system-ca` (Node ≥ 22) tells Node to
# consult the OS CA bundle alongside its own.
env:
NODE_OPTIONS: --use-system-ca
jobs: jobs:
build: build:
runs-on: [self-hosted, on-prem] runs-on: [self-hosted, on-prem]