Skip to content

Commit 139b316

Browse files
authored
fix(ci): use Github Bot for Crowdin (#7671)
* fix(ci): use Github Bot for Crowdin Signed-off-by: Aviv Keller <[email protected]> * `CROWDIN_GITHUB_BOT_TOKEN` Signed-off-by: Aviv Keller <[email protected]> * checkout w/ token Signed-off-by: Aviv Keller <[email protected]> --------- Signed-off-by: Aviv Keller <[email protected]>
1 parent c6b6928 commit 139b316

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/translations-sync.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ concurrency:
1616
cancel-in-progress: true
1717

1818
permissions:
19-
# These permissions required by `crowdin/github-action`
20-
contents: write
21-
pull-requests: write
19+
contents: read
2220

2321
jobs:
2422
synchronize-with-crowdin:
@@ -34,6 +32,8 @@ jobs:
3432

3533
- name: Checkout
3634
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
35+
with:
36+
token: ${{ secrets.CROWDIN_GITHUB_BOT_TOKEN }}
3737

3838
# see all the options at https://github.com/crowdin/github-action
3939
- name: Crowdin PR
@@ -51,7 +51,7 @@ jobs:
5151
pull_request_body: 'New Crowdin translations from the [Node.js Crowdin project](https://crowdin.com/project/nodejs-web)'
5252
commit_message: 'chore: synced translations from crowdin'
5353
env:
54-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
GITHUB_TOKEN: ${{ secrets.CROWDIN_GITHUB_BOT_TOKEN }}
5555
# A numeric ID, found at https://crowdin.com/project/nodejs-web/tools/api
5656
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
5757
# Created from https://crowdin.com/settings#api-key logged in using nodejs-crowdin-bot
@@ -76,6 +76,7 @@ jobs:
7676
with:
7777
# Use the number from the output of crowdin/github-action
7878
ref: refs/pull/${{ needs.synchronize-with-crowdin.outputs.pull_request_number }}/head
79+
token: ${{ secrets.CROWDIN_GITHUB_BOT_TOKEN }}
7980

8081
- name: Restore Lint Cache
8182
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3

0 commit comments

Comments
 (0)