From 676cd825bf693b5665856f01410a0065b0330489 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Fri, 17 Jul 2026 12:56:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(token=20=E6=B3=A8=E5=85=A5):=20action.yml?= =?UTF-8?q?=20=E4=BB=A5=20env=20=E5=82=B3=E5=85=A5=20gitea.token=20?= =?UTF-8?q?=E4=BE=9B=E5=AE=B9=E5=99=A8=E8=AE=80=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/action.yml b/action.yml index 08d0e92..749c218 100644 --- a/action.yml +++ b/action.yml @@ -14,3 +14,7 @@ runs: using: docker image: dockerfile entrypoint: /action/entrypoint.sh + env: + # 將 Gitea 自動提供的 token 注入容器環境,供 index.js 讀取 GITHUB_TOKEN/GITEA_TOKEN 用; + # docker action 不會自動把 token 帶進容器,須在此明確以 ${{ gitea.token }} 賦值傳入 + GITHUB_TOKEN: ${{ gitea.token }} -- 2.53.0