From 232dcf49915d6e5435003cf8d984a2231275fbfd Mon Sep 17 00:00:00 2001 From: Xingyao Wang Date: Tue, 30 Dec 2025 14:41:45 -0600 Subject: [PATCH] fix(ci): update PAT_TOKEN to ALLHANDS_BOT_GITHUB_PAT for enterprise preview (#12216) Co-authored-by: openhands --- .github/workflows/enterprise-preview.yml | 2 +- .github/workflows/ghcr-build.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/enterprise-preview.yml b/.github/workflows/enterprise-preview.yml index e31222827b..ac9f81c3b9 100644 --- a/.github/workflows/enterprise-preview.yml +++ b/.github/workflows/enterprise-preview.yml @@ -23,7 +23,7 @@ jobs: - name: Trigger remote job run: | curl --fail-with-body -sS -X POST \ - -H "Authorization: Bearer ${{ secrets.PAT_TOKEN }}" \ + -H "Authorization: Bearer ${{ secrets.ALLHANDS_BOT_GITHUB_PAT }}" \ -H "Accept: application/vnd.github+json" \ -d "{\"ref\": \"main\", \"inputs\": {\"openhandsPrNumber\": \"${{ github.event.pull_request.number }}\", \"deployEnvironment\": \"feature\", \"enterpriseImageTag\": \"pr-${{ github.event.pull_request.number }}\" }}" \ https://api.github.com/repos/OpenHands/deploy/actions/workflows/deploy.yaml/dispatches diff --git a/.github/workflows/ghcr-build.yml b/.github/workflows/ghcr-build.yml index b63e681fe3..68462f75c2 100644 --- a/.github/workflows/ghcr-build.yml +++ b/.github/workflows/ghcr-build.yml @@ -247,7 +247,7 @@ jobs: - name: Trigger remote job run: | curl --fail-with-body -sS -X POST \ - -H "Authorization: Bearer ${{ secrets.PAT_TOKEN }}" \ + -H "Authorization: Bearer ${{ secrets.ALLHANDS_BOT_GITHUB_PAT }}" \ -H "Accept: application/vnd.github+json" \ -d "{\"ref\": \"main\", \"inputs\": {\"openhandsPrNumber\": \"${{ github.event.pull_request.number }}\", \"deployEnvironment\": \"feature\", \"enterpriseImageTag\": \"pr-${{ github.event.pull_request.number }}\" }}" \ https://api.github.com/repos/OpenHands/deploy/actions/workflows/deploy.yaml/dispatches