From 39b11996176314469ec1dd84c9a82543b72d0945 Mon Sep 17 00:00:00 2001 From: "Billy D." Date: Fri, 20 Feb 2026 09:22:38 -0500 Subject: [PATCH] fix: add GOPRIVATE and git auth for private handler-base module - Set GOPRIVATE=git.daviestechlabs.io to bypass public Go module proxy - Configure git URL insteadOf with DISPATCH_TOKEN for private repo access --- .gitea/workflows/update-dependency.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/update-dependency.yml b/.gitea/workflows/update-dependency.yml index 78ecdbc..7f132d4 100644 --- a/.gitea/workflows/update-dependency.yml +++ b/.gitea/workflows/update-dependency.yml @@ -6,6 +6,7 @@ on: env: NTFY_URL: http://ntfy.observability.svc.cluster.local:80 + GOPRIVATE: git.daviestechlabs.io jobs: update: @@ -27,13 +28,13 @@ jobs: run: | git config user.name "gitea-actions[bot]" git config user.email "actions@git.daviestechlabs.io" + git config --global url."https://gitea-actions:${{ secrets.DISPATCH_TOKEN }}@git.daviestechlabs.io/".insteadOf "https://git.daviestechlabs.io/" - name: Update handler-base run: | VERSION="${{ gitea.event.client_payload.version }}" echo "Updating handler-base to ${VERSION}" - GONOSUMCHECK=git.daviestechlabs.io GONOSUMDB=git.daviestechlabs.io \ - go get git.daviestechlabs.io/daviestechlabs/handler-base@${VERSION} + go get git.daviestechlabs.io/daviestechlabs/handler-base@${VERSION} go mod tidy - name: Commit and push