Skip to content

Commit 23dcbbe

Browse files
authored
ci: Avoid repository push access token
1 parent 1c84265 commit 23dcbbe

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/sync_crowdin.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
sync:
1616
name: Sync
1717
runs-on: ubuntu-latest
18+
permissions:
19+
contents: write
20+
pull-requests: write
1821
steps:
1922
- name: Checkout
2023
uses: actions/checkout@v4
@@ -39,10 +42,8 @@ jobs:
3942
pull_request_body: "Sync translations from [crowdin.com/project/revanced](https://crowdin.com/project/revanced)"
4043
pull_request_base_branch_name: "dev"
4144
commit_message: "chore: Sync translations"
42-
github_user_name: revanced-bot
43-
github_user_email: [email protected]
4445
env:
45-
GITHUB_TOKEN: ${{ secrets.REPOSITORY_PUSH_ACCESS }}
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4647
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
4748
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
4849

@@ -69,8 +70,6 @@ jobs:
6970
7071
- name: Commit translations
7172
run: |
72-
git config user.name revanced-bot
73-
git config user.email [email protected]
7473
sudo chown -R $USER:$USER .git
7574
git commit -m "chore: Remove empty values from JSON" assets/i18n/*.i18n.json
7675
git push origin HEAD:feat/translations

0 commit comments

Comments
 (0)