Skip to content

Commit 2a879eb

Browse files
darkobas2claude
andcommitted
ci: use org bot account (GHA_PAT_ADVANCED / bee-worker) for OpenAPI auto-PR
Auto-generated OpenAPI update PRs are opened by the bee-worker bot instead of a personal PAT, so a maintainer can review + approve them. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 2963cd7 commit 2a879eb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/update-openapi.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ name: update openapi
44
# openapi/, bumps the Bee version strings in the install docs, and opens (or updates)
55
# a PR. Prereleases (-rc*, -beta, v2.7.1a, v2.5.0-v8, ...) are ignored.
66
#
7-
# Requires the BOT_PAT secret (a classic PAT with public_repo scope, or a fine-grained PAT
7+
# Requires the GHA_PAT_ADVANCED secret (a classic PAT with public_repo scope, or a fine-grained PAT
88
# with contents + pull-requests write). It is used so the auto-PR triggers build.yaml CI —
99
# PRs opened with the default GITHUB_TOKEN do NOT trigger other workflows. The job fails
10-
# loudly if BOT_PAT is missing/expired rather than silently skipping CI.
10+
# loudly if GHA_PAT_ADVANCED is missing/expired rather than silently skipping CI.
1111

1212
on:
1313
schedule:
@@ -117,7 +117,7 @@ jobs:
117117
if: ${{ steps.changes.outputs.changed == 'true' }}
118118
uses: peter-evans/create-pull-request@v6
119119
with:
120-
token: ${{ secrets.BOT_PAT }}
120+
token: ${{ secrets.GHA_PAT_ADVANCED }}
121121
branch: bot/update-openapi-${{ steps.resolve.outputs.new_tag }}
122122
commit-message: "chore: update OpenAPI specs and version refs to Bee ${{ steps.resolve.outputs.new_tag }}"
123123
title: "Update OpenAPI specs to Bee ${{ steps.resolve.outputs.new_tag }}"

0 commit comments

Comments
 (0)