From 5712ec54800ac9406331ca2c9979f92754c449cf Mon Sep 17 00:00:00 2001 From: pooneyy <85266337+pooneyy@users.noreply.github.com> Date: Thu, 30 Oct 2025 21:48:44 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(action-runner):=20add=20privil?= =?UTF-8?q?eged=20mode=20configuration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - add PRIVILEGED environment variable with select field in form configuration - update docker-compose to use PRIVILEGED variable instead of hardcoded true value - provide both English and Chinese labels for privilege mode option - include enabled/disabled options with true/false values for flexible permission management --- apps/action-runner/2.329.0/data.yml | 13 +++++++++++++ apps/action-runner/2.329.0/docker-compose.yml | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/apps/action-runner/2.329.0/data.yml b/apps/action-runner/2.329.0/data.yml index fa70f5562..dd56e0e15 100644 --- a/apps/action-runner/2.329.0/data.yml +++ b/apps/action-runner/2.329.0/data.yml @@ -1,5 +1,18 @@ additionalProperties: formFields: + - default: "false" + edit: true + envKey: PRIVILEGED + labelEn: "Privilege Mode: Manually enabled for permission issues" + labelZh: "特权模式: 遇到权限问题时手动启用" + required: false + type: select + values: + - label: "启用 Enabled" + value: "true" + - label: "禁用 Disabled" + value: "false" + - default: "repos" edit: true envKey: ROLE diff --git a/apps/action-runner/2.329.0/docker-compose.yml b/apps/action-runner/2.329.0/docker-compose.yml index 8dad82bdc..7ca54621a 100644 --- a/apps/action-runner/2.329.0/docker-compose.yml +++ b/apps/action-runner/2.329.0/docker-compose.yml @@ -3,7 +3,7 @@ services: image: ghcr.io/pooneyy/actions-runner:2.329.0 container_name: ${CONTAINER_NAME} restart: always - privileged: true + privileged: ${PRIVILEGED} networks: - 1panel-network labels: