Skip to content

Commit 0e624bc

Browse files
Docker Phase 4: GH_TOKEN -> GitHub App token (update_version.yml)
Mint a GitHub App token in update_version.yml and export it to the job environment (GH_TOKEN/GITHUB_TOKEN) so the update_docker --pipeline PR creation runs under the citusdata GitHub App instead of the org PAT. Top-level GH_TOKEN secret is intentionally retained for zero-downtime (removed only in Phase 6). The 4 publish workflows use DockerHub creds only and need no change. Matches the proven pattern in citusdata/packaging update-pgxn-version.yml. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 215130f commit 0e624bc

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/update_version.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,19 @@ jobs:
2727
- name: Checkout repository
2828
uses: actions/checkout@v6
2929

30+
- name: Generate GitHub App token
31+
id: app-token
32+
uses: actions/create-github-app-token@v3
33+
with:
34+
app-id: ${{ vars.GH_APP_ID }}
35+
private-key: ${{ secrets.GH_APP_KEY }}
36+
owner: citusdata
37+
38+
- name: Export App token to environment
39+
run: |
40+
echo "GH_TOKEN=${{ steps.app-token.outputs.token }}" >> "$GITHUB_ENV"
41+
echo "GITHUB_TOKEN=${{ steps.app-token.outputs.token }}" >> "$GITHUB_ENV"
42+
3043
- name: Install package dependencies
3144
run: sudo apt-get update && sudo apt install libcurl4-openssl-dev libssl-dev python3-testresources
3245

0 commit comments

Comments
 (0)