File tree Expand file tree Collapse file tree 5 files changed +46
-6
lines changed Expand file tree Collapse file tree 5 files changed +46
-6
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,20 @@ jobs:
27
27
runs-on : " ${{ matrix.os }}-latest"
28
28
steps :
29
29
# 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 }}
30
38
- name : Checkout Airbyte
31
39
uses : actions/checkout@v4
32
40
with :
33
41
# Important that this is set so that CI checks are triggered again
34
42
# 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 }}
36
44
37
45
- name : Checkout PR (${{ github.event.inputs.pr }})
38
46
uses : dawidd6/action-checkout-pr@v1
Original file line number Diff line number Diff line change 20
20
GCP_GSM_CREDENTIALS : ${{ secrets.GCP_GSM_CREDENTIALS }}
21
21
runs-on : ubuntu-latest
22
22
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 }}
23
31
- name : Run Poe Slash Command Processor
24
32
uses : aaronsteers/poe-command-processor@v1
25
33
with :
26
34
pr : ${{ github.event.inputs.pr }}
27
35
comment-id : ${{ github.event.inputs.comment-id }}
28
- github-token : ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}
36
+ github-token : ${{ steps.get-app-token.outputs.token }}
Original file line number Diff line number Diff line change @@ -24,12 +24,20 @@ jobs:
24
24
runs-on : " ${{ matrix.os }}-latest"
25
25
steps :
26
26
# 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 }}
27
35
- name : Checkout Airbyte
28
36
uses : actions/checkout@v4
29
37
with :
30
38
# Important that this is set so that CI checks are triggered again
31
39
# 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 }}
33
41
34
42
- name : Checkout PR (${{ github.event.inputs.pr }})
35
43
uses : dawidd6/action-checkout-pr@v1
Original file line number Diff line number Diff line change @@ -358,11 +358,19 @@ jobs:
358
358
- uses : actions/setup-python@v5
359
359
with :
360
360
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 }}
361
369
- name : Checkout Airbyte Platform Internal
362
370
uses : actions/checkout@v4
363
371
with :
364
372
repository : airbytehq/airbyte-platform-internal
365
- token : ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}
373
+ token : ${{ steps.get-app-token.outputs.token }}
366
374
- name : Update Builder's CDK version to ${{ env.VERSION }}
367
375
# PyPI servers aren't immediately updated so we may need to retry a few times.
368
376
uses : nick-fields/retry@v3
@@ -386,7 +394,7 @@ jobs:
386
394
id : create-pull-request
387
395
uses : peter-evans/create-pull-request@v7
388
396
with :
389
- token : ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}
397
+ token : ${{ steps.get-app-token.outputs.token }}
390
398
commit-message : " chore: update CDK version following release"
391
399
title : " chore: update CDK version following release"
392
400
body : This is an automatically generated PR triggered by a CDK release
Original file line number Diff line number Diff line change 8
8
slashCommandDispatch :
9
9
runs-on : ubuntu-24.04
10
10
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 }}
11
19
- name : Slash Command Dispatch
12
20
id : dispatch
13
21
# TODO: Revert to `peter-evans/slash-command-dispatch@v4` after PR merges:
14
22
# - https://github.com/peter-evans/slash-command-dispatch/pull/372/files
15
23
uses : aaronsteers/slash-command-dispatch@aj/fix/add-dispatched-bool-output
16
24
with :
17
25
repository : ${{ github.repository }}
18
- token : ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}
26
+ token : ${{ steps.get-app-token.outputs.token }}
19
27
dispatch-type : workflow
20
28
issue-type : both
21
29
You can’t perform that action at this time.
0 commit comments