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
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user