From d1d70250ec0a3f20741f97d4f5cbebe059a5d87f Mon Sep 17 00:00:00 2001 From: sittichok Ouamsiri Date: Sat, 13 Jun 2026 23:37:55 +0700 Subject: [PATCH] fix: pass PAT secrets (REGISTRY_USER/REGISTRY_TOKEN) to template gitea.token cannot push packages; use a PAT with package scope. Co-Authored-By: Claude Opus 4.8 --- .gitea/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 8ff10f3..d30575d 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -12,10 +12,11 @@ permissions: jobs: trigger-internal-build: - uses: infras/workflow-templates/.gitea/workflows/docker-template.yml@1745732456bdd9bd41bbec4bb4cf9cff08f650fe + uses: infras/workflow-templates/.gitea/workflows/docker-template.yml@47684a2ffa498f4101557efc3acf1ae8a354178f with: image_name: 'simple-http-server' image_owner: thistine image_tag: ${{ gitea.ref_name }} secrets: - REGISTRY_TOKEN: ${{ gitea.token }} \ No newline at end of file + REGISTRY_USER: ${{ secrets.REGISTRY_USER }} + REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }} \ No newline at end of file