Skip to content

Commit 37df336

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

3 files changed

Lines changed: 27 additions & 3 deletions

File tree

.github/workflows/fix-pr-command.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,20 @@ jobs:
3535
steps:
3636

3737
# Custom steps to fetch the PR and checkout the code:
38+
- name: Authenticate as GitHub App
39+
uses: actions/create-github-app-token@v2
40+
id: get-app-token
41+
with:
42+
owner: "airbytehq"
43+
repositories: "PyAirbyte"
44+
app-id: ${{ secrets.OCTAVIA_BOT_APP_ID }}
45+
private-key: ${{ secrets.OCTAVIA_BOT_PRIVATE_KEY }}
3846
- name: Checkout Airbyte
3947
uses: actions/checkout@v5
4048
with:
4149
# Important that this is set so that CI checks are triggered again
4250
# Without this we would be forever waiting on required checks to pass
43-
token: ${{ secrets.GH_PAT_APPROVINGTON_OCTAVIA }}
51+
token: ${{ steps.get-app-token.outputs.token }}
4452

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

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,20 @@ jobs:
3232
steps:
3333

3434
# Custom steps to fetch the PR and checkout the code:
35+
- name: Authenticate as GitHub App
36+
uses: actions/create-github-app-token@v2
37+
id: get-app-token
38+
with:
39+
owner: "airbytehq"
40+
repositories: "PyAirbyte"
41+
app-id: ${{ secrets.OCTAVIA_BOT_APP_ID }}
42+
private-key: ${{ secrets.OCTAVIA_BOT_PRIVATE_KEY }}
3543
- name: Checkout Airbyte
3644
uses: actions/checkout@v5
3745
with:
3846
# Important that this is set so that CI checks are triggered again
3947
# Without this we would be forever waiting on required checks to pass
40-
token: ${{ secrets.GH_PAT_APPROVINGTON_OCTAVIA }}
48+
token: ${{ steps.get-app-token.outputs.token }}
4149

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

.github/workflows/slash_command_dispatch.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,20 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616

17+
- name: Authenticate as GitHub App
18+
uses: actions/create-github-app-token@v2
19+
id: get-app-token
20+
with:
21+
owner: "airbytehq"
22+
repositories: "PyAirbyte"
23+
app-id: ${{ secrets.OCTAVIA_BOT_APP_ID }}
24+
private-key: ${{ secrets.OCTAVIA_BOT_PRIVATE_KEY }}
1725
- name: Slash Command Dispatch
1826
id: dispatch
1927
uses: peter-evans/slash-command-dispatch@v4
2028
with:
2129
repository: ${{ github.repository }}
22-
token: ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}
30+
token: ${{ steps.get-app-token.outputs.token }}
2331
dispatch-type: workflow
2432
issue-type: pull-request
2533
commands: |

0 commit comments

Comments
 (0)