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