fix(ci): add NODE_TLS_REJECT_UNAUTHORIZED to bypass SSL cert errors on artifact upload/download
API CI/CD / Validate (composer + pint) (push) Successful in 2m10s
API CI/CD / Test (PHPUnit) (push) Failing after 57s
API CI/CD / Build frontend assets (push) Successful in 54s
API CI/CD / Security audit (push) Successful in 32s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped

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.
This commit is contained in:
root
2026-06-25 15:44:01 -04:00
parent 940afe9319
commit 16e4f235f0
+6
View File
@@ -92,6 +92,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: mcr.microsoft.com/devcontainers/php:8.4 image: mcr.microsoft.com/devcontainers/php:8.4
env:
NODE_TLS_REJECT_UNAUTHORIZED: "0"
steps: steps:
- name: Checkout repository - name: Checkout repository
run: | run: |
@@ -182,6 +184,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: node:22-bookworm-slim image: node:22-bookworm-slim
env:
NODE_TLS_REJECT_UNAUTHORIZED: "0"
steps: steps:
- name: Checkout repository - name: Checkout repository
run: | run: |
@@ -276,6 +280,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: mcr.microsoft.com/devcontainers/php:8.4 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' if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
needs: [test, build, security] needs: [test, build, security]
environment: environment: