Skip to content

Commit 6a0a7d7

Browse files
authored
BRE-438 - Update Crowdin workflow to use app token (#4321)
1 parent 3742940 commit 6a0a7d7

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/crowdin-pull.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Crowdin Sync
22

33
on:
44
workflow_dispatch:
5-
inputs: { }
5+
inputs: {}
66
schedule:
77
- cron: '0 0 * * 5'
88

@@ -28,10 +28,17 @@ jobs:
2828
keyvault: "bitwarden-ci"
2929
secrets: "crowdin-api-token, github-gpg-private-key, github-gpg-private-key-passphrase"
3030

31+
- name: Generate GH App token
32+
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
33+
id: app-token
34+
with:
35+
app-id: ${{ secrets.BW_GHAPP_ID }}
36+
private-key: ${{ secrets.BW_GHAPP_KEY }}
37+
3138
- name: Download translations
3239
uses: crowdin/github-action@2d540f18b0a416b1fbf2ee5be35841bd380fc1da # v2.3.0
3340
env:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
3542
CROWDIN_API_TOKEN: ${{ steps.retrieve-secrets.outputs.crowdin-api-token }}
3643
with:
3744
config: crowdin.yml

0 commit comments

Comments
 (0)