Skip to content

Commit 9f3c707

Browse files
fix: Use GitHub App token for prerelease workflow dispatch (#913)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent cd1b390 commit 9f3c707

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/prerelease-command.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,20 @@ jobs:
7272
needs: [resolve-pr]
7373
runs-on: ubuntu-latest
7474
steps:
75+
- name: Authenticate as GitHub App
76+
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
77+
id: get-app-token
78+
with:
79+
owner: "airbytehq"
80+
repositories: "PyAirbyte"
81+
app-id: ${{ secrets.OCTAVIA_BOT_APP_ID }}
82+
private-key: ${{ secrets.OCTAVIA_BOT_PRIVATE_KEY }}
7583
- name: Trigger pypi_publish workflow
7684
id: dispatch
7785
uses: the-actions-org/workflow-dispatch@v4
7886
with:
7987
workflow: pypi_publish.yml
80-
token: ${{ secrets.GITHUB_CI_WORKFLOW_TRIGGER_PAT }}
88+
token: ${{ steps.get-app-token.outputs.token }}
8189
ref: main # Run from main so OIDC attestation matches trusted publisher
8290
inputs: '{"git_ref": "refs/pull/${{ github.event.inputs.pr }}/head", "version_override": "${{ needs.resolve-pr.outputs.prerelease-version }}", "publish": "true"}'
8391
wait-for-completion: true

0 commit comments

Comments
 (0)