From 6b357c8e60c51618a437c2afcb0cdef4611832e4 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 10 Jul 2026 16:40:51 +0300 Subject: [PATCH] fix(installer): use organization mutation token --- .github/workflows/autopilot-org-installer.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/autopilot-org-installer.yml b/.github/workflows/autopilot-org-installer.yml index 02f1a2e..7ae7fcd 100644 --- a/.github/workflows/autopilot-org-installer.yml +++ b/.github/workflows/autopilot-org-installer.yml @@ -16,7 +16,7 @@ jobs: timeout-minutes: 15 env: ORG: ${{ vars.ORG }} - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.ORG_AUTOPILOT_TOKEN }} steps: - name: Checkout installer uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 @@ -28,6 +28,10 @@ jobs: echo "ORG var is required." exit 1 fi + if [ -z "${GH_TOKEN}" ]; then + echo "ORG_AUTOPILOT_TOKEN is required for cross-repository mutations." + exit 1 + fi template_path=".github/workflows/autopilot-create-issue.yml" if [ ! -f "${template_path}" ]; then