Skip to content

Commit 47cd3fc

Browse files
authored
ci: replace CD_PAT with GitHub app token (#14492)
* ci: replace PAT with github app token * ci: replace PAT with github app token
1 parent 692dcce commit 47cd3fc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/cd_trigger.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,16 @@ jobs:
111111
runs-on: ubuntu-latest
112112
if: ${{ github.event.workflow_run.conclusion == 'success' }}
113113
steps:
114+
- id: generate-token
115+
uses: actions/create-github-app-token@v2
116+
with:
117+
app-id: ${{ vars.APP_GITHUB_APP_ID }}
118+
private-key: ${{ secrets.APP_GITHUB_APP_PRIVATE_KEY }}
119+
114120
- name: Checkout branch
115121
uses: actions/checkout@v3
116122
with:
117-
token: ${{ secrets.CD_PAT }}
123+
token: ${{ steps.generate-token.outputs.token }}
118124
ref: ${{ github.event.workflow_run.head_branch }}
119125

120126
- name: Setup node

0 commit comments

Comments
 (0)