]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
👷 Fix missing credentials issue in `translate` workflow (#15468)
authorMotov Yurii <109919500+YuriiMotov@users.noreply.github.com>
Fri, 1 May 2026 14:29:41 +0000 (16:29 +0200)
committerGitHub <noreply@github.com>
Fri, 1 May 2026 14:29:41 +0000 (16:29 +0200)
.github/workflows/translate.yml

index 22fd7e4f15067e87eb90bfd117ac837238ad1785..87023623ed0d77ea15f6c2f8d890be3853d62fa5 100644 (file)
@@ -79,6 +79,8 @@ jobs:
     if: github.repository_owner == 'fastapi'
     needs: langs
     runs-on: ubuntu-latest
+    permissions:
+      contents: write
     strategy:
       matrix:
         lang: ${{ fromJson(needs.langs.outputs.langs) }}
@@ -91,7 +93,7 @@ jobs:
       - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
         with:
           fetch-depth: 0
-          persist-credentials: false
+          persist-credentials: true # Required for `git push` in `translate.py`
       - name: Set up Python
         uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
         with: