Skip to content

Commit f946d41

Browse files
chore: replace maintenance PATs with octavia-bot GitHub App authentication (#748)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent c40125a commit f946d41

File tree

5 files changed

+46
-6
lines changed

5 files changed

+46
-6
lines changed

.github/workflows/autofix-command.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,20 @@ jobs:
2727
runs-on: "${{ matrix.os }}-latest"
2828
steps:
2929
# Custom steps to fetch the PR and checkout the code:
30+
- name: Authenticate as GitHub App
31+
uses: actions/create-github-app-token@v2
32+
id: get-app-token
33+
with:
34+
owner: "airbytehq"
35+
repositories: "airbyte-python-cdk"
36+
app-id: ${{ secrets.OCTAVIA_BOT_APP_ID }}
37+
private-key: ${{ secrets.OCTAVIA_BOT_PRIVATE_KEY }}
3038
- name: Checkout Airbyte
3139
uses: actions/checkout@v4
3240
with:
3341
# Important that this is set so that CI checks are triggered again
3442
# Without this we would be forever waiting on required checks to pass
35-
token: ${{ secrets.GH_PAT_APPROVINGTON_OCTAVIA }}
43+
token: ${{ steps.get-app-token.outputs.token }}
3644

3745
- name: Checkout PR (${{ github.event.inputs.pr }})
3846
uses: dawidd6/action-checkout-pr@v1

.github/workflows/poe-command.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,17 @@ jobs:
2020
GCP_GSM_CREDENTIALS: ${{ secrets.GCP_GSM_CREDENTIALS }}
2121
runs-on: ubuntu-latest
2222
steps:
23+
- name: Authenticate as GitHub App
24+
uses: actions/create-github-app-token@v2
25+
id: get-app-token
26+
with:
27+
owner: "airbytehq"
28+
repositories: "airbyte-python-cdk"
29+
app-id: ${{ secrets.OCTAVIA_BOT_APP_ID }}
30+
private-key: ${{ secrets.OCTAVIA_BOT_PRIVATE_KEY }}
2331
- name: Run Poe Slash Command Processor
2432
uses: aaronsteers/poe-command-processor@v1
2533
with:
2634
pr: ${{ github.event.inputs.pr }}
2735
comment-id: ${{ github.event.inputs.comment-id }}
28-
github-token: ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}
36+
github-token: ${{ steps.get-app-token.outputs.token }}

.github/workflows/poetry-lock-command.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,20 @@ jobs:
2424
runs-on: "${{ matrix.os }}-latest"
2525
steps:
2626
# Custom steps to fetch the PR and checkout the code:
27+
- name: Authenticate as GitHub App
28+
uses: actions/create-github-app-token@v2
29+
id: get-app-token
30+
with:
31+
owner: "airbytehq"
32+
repositories: "airbyte-python-cdk"
33+
app-id: ${{ secrets.OCTAVIA_BOT_APP_ID }}
34+
private-key: ${{ secrets.OCTAVIA_BOT_PRIVATE_KEY }}
2735
- name: Checkout Airbyte
2836
uses: actions/checkout@v4
2937
with:
3038
# Important that this is set so that CI checks are triggered again
3139
# Without this we would be forever waiting on required checks to pass
32-
token: ${{ secrets.GH_PAT_APPROVINGTON_OCTAVIA }}
40+
token: ${{ steps.get-app-token.outputs.token }}
3341

3442
- name: Checkout PR (${{ github.event.inputs.pr }})
3543
uses: dawidd6/action-checkout-pr@v1

.github/workflows/publish.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,19 @@ jobs:
358358
- uses: actions/setup-python@v5
359359
with:
360360
python-version: "3.10"
361+
- name: Authenticate as GitHub App
362+
uses: actions/create-github-app-token@v2
363+
id: get-app-token
364+
with:
365+
owner: "airbytehq"
366+
repositories: "airbyte-platform-internal"
367+
app-id: ${{ secrets.OCTAVIA_BOT_APP_ID }}
368+
private-key: ${{ secrets.OCTAVIA_BOT_PRIVATE_KEY }}
361369
- name: Checkout Airbyte Platform Internal
362370
uses: actions/checkout@v4
363371
with:
364372
repository: airbytehq/airbyte-platform-internal
365-
token: ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}
373+
token: ${{ steps.get-app-token.outputs.token }}
366374
- name: Update Builder's CDK version to ${{ env.VERSION }}
367375
# PyPI servers aren't immediately updated so we may need to retry a few times.
368376
uses: nick-fields/retry@v3
@@ -386,7 +394,7 @@ jobs:
386394
id: create-pull-request
387395
uses: peter-evans/create-pull-request@v7
388396
with:
389-
token: ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}
397+
token: ${{ steps.get-app-token.outputs.token }}
390398
commit-message: "chore: update CDK version following release"
391399
title: "chore: update CDK version following release"
392400
body: This is an automatically generated PR triggered by a CDK release

.github/workflows/slash_command_dispatch.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,22 @@ jobs:
88
slashCommandDispatch:
99
runs-on: ubuntu-24.04
1010
steps:
11+
- name: Authenticate as GitHub App
12+
uses: actions/create-github-app-token@v2
13+
id: get-app-token
14+
with:
15+
owner: "airbytehq"
16+
repositories: "airbyte-python-cdk"
17+
app-id: ${{ secrets.OCTAVIA_BOT_APP_ID }}
18+
private-key: ${{ secrets.OCTAVIA_BOT_PRIVATE_KEY }}
1119
- name: Slash Command Dispatch
1220
id: dispatch
1321
# TODO: Revert to `peter-evans/slash-command-dispatch@v4` after PR merges:
1422
# - https://github.com/peter-evans/slash-command-dispatch/pull/372/files
1523
uses: aaronsteers/slash-command-dispatch@aj/fix/add-dispatched-bool-output
1624
with:
1725
repository: ${{ github.repository }}
18-
token: ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}
26+
token: ${{ steps.get-app-token.outputs.token }}
1927
dispatch-type: workflow
2028
issue-type: both
2129

0 commit comments

Comments
 (0)