Skip to content

Commit b271d3c

Browse files
authored
[TT-17030] Migrate from TYK_UI_TOKEN PAT to GitHub App token (#418)
Replace TYK_UI_TOKEN in build-and-publish.yml (checkout token) with a token generated by actions/create-github-app-token.
1 parent d0494b5 commit b271d3c

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/build-and-publish.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,19 @@ jobs:
1818
node-version: [16.x]
1919

2020
steps:
21+
- name: Generate GitHub App token
22+
id: app-token
23+
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1
24+
with:
25+
app-id: ${{ secrets.PROBE_APP_ID }}
26+
private-key: ${{ secrets.PROBE_APP_PRIVATE_KEY }}
27+
owner: TykTechnologies
28+
2129
- name: Checkout repo
2230
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
2331
with:
2432
fetch-depth: 0
25-
token: ${{ secrets.TYK_UI_TOKEN }}
33+
token: ${{ steps.app-token.outputs.token }}
2634
- name: Use node ${{ matrix.node-version }}
2735
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3
2836
with:

0 commit comments

Comments
 (0)