From 16e4f235f053f83ea64ddbb95fdedf01ad468c20 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 25 Jun 2026 15:44:01 -0400 Subject: [PATCH] fix(ci): add NODE_TLS_REJECT_UNAUTHORIZED to bypass SSL cert errors on artifact upload/download Gitea server (192.168.3.80) uses a self-signed/internal CA cert. The git clone steps already used GIT_SSL_NO_VERIFY, but actions/upload-artifact and actions/download-artifact make Node.js HTTPS calls to the Gitea API and failed with 'unable to verify the first certificate'. Added NODE_TLS_REJECT_UNAUTHORIZED=0 to test, build, and deploy jobs. --- .gitea/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index a62578de..1d987a92 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -92,6 +92,8 @@ jobs: runs-on: ubuntu-latest container: image: mcr.microsoft.com/devcontainers/php:8.4 + env: + NODE_TLS_REJECT_UNAUTHORIZED: "0" steps: - name: Checkout repository run: | @@ -182,6 +184,8 @@ jobs: runs-on: ubuntu-latest container: image: node:22-bookworm-slim + env: + NODE_TLS_REJECT_UNAUTHORIZED: "0" steps: - name: Checkout repository run: | @@ -276,6 +280,8 @@ jobs: runs-on: ubuntu-latest container: image: mcr.microsoft.com/devcontainers/php:8.4 + env: + NODE_TLS_REJECT_UNAUTHORIZED: "0" if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' needs: [test, build, security] environment: