Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

granular perms [crowdin]

Manav Rathi038f6b33e140
diff --git a/.github/workflows/auth-crowdin-push.yml b/.github/workflows/auth-crowdin-push.yml
index 5c81291012..4cefb1d1c6 100644
--- a/.github/workflows/auth-crowdin-push.yml
+++ b/.github/workflows/auth-crowdin-push.yml
@@ -9,6 +9,10 @@ on:
# Or the workflow itself is changed
- ".github/workflows/auth-crowdin.yml"
+permissions:
+ contents: write
+ pull-requests: write
+
jobs:
push-sources-to-crowdin:
runs-on: ubuntu-latest
diff --git a/.github/workflows/auth-crowdin-sync.yml b/.github/workflows/auth-crowdin-sync.yml
index b8027c82f0..695aea7245 100644
--- a/.github/workflows/auth-crowdin-sync.yml
+++ b/.github/workflows/auth-crowdin-sync.yml
@@ -8,6 +8,10 @@ on:
# Also allow manually running the workflow.
workflow_dispatch:
+permissions:
+ contents: write
+ pull-requests: write
+
jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest
diff --git a/.github/workflows/mobile-crowdin-push.yml b/.github/workflows/mobile-crowdin-push.yml
index 2c77ebc69b..e8b219d5c7 100644
--- a/.github/workflows/mobile-crowdin-push.yml
+++ b/.github/workflows/mobile-crowdin-push.yml
@@ -9,6 +9,10 @@ on:
# Or the workflow itself is changed
- ".github/workflows/mobile-crowdin.yml"
+permissions:
+ contents: write
+ pull-requests: write
+
jobs:
push-sources-to-crowdin:
runs-on: ubuntu-latest
diff --git a/.github/workflows/mobile-crowdin-sync.yml b/.github/workflows/mobile-crowdin-sync.yml
index 39062cd6f5..f064105331 100644
--- a/.github/workflows/mobile-crowdin-sync.yml
+++ b/.github/workflows/mobile-crowdin-sync.yml
@@ -8,6 +8,10 @@ on:
# Also allow manually running the workflow.
workflow_dispatch:
+permissions:
+ contents: write
+ pull-requests: write
+
jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest
diff --git a/.github/workflows/web-crowdin-push-both.yml b/.github/workflows/web-crowdin-push-both.yml
index f836537b01..dff2bde520 100644
--- a/.github/workflows/web-crowdin-push-both.yml
+++ b/.github/workflows/web-crowdin-push-both.yml
@@ -12,6 +12,10 @@ on:
# `gh workflow run web-crowdin-push-both.yml --ref <my-branch>`
workflow_dispatch:
+permissions:
+ contents: write
+ pull-requests: write
+
jobs:
push-both-to-crowdin:
runs-on: ubuntu-latest
diff --git a/.github/workflows/web-crowdin-sync.yml b/.github/workflows/web-crowdin-sync.yml
index f81e27c352..6a6e4dd243 100644
--- a/.github/workflows/web-crowdin-sync.yml
+++ b/.github/workflows/web-crowdin-sync.yml
@@ -22,6 +22,15 @@ on:
# Also allow manually running the workflow.
workflow_dispatch:
+# "In order to push translations and create pull requests, the Crowdin GitHub
+# action requires the `GITHUB_TOKEN` to have write permission on the `contents`
+# and `pull-requests`.
+#
+# - https://github.com/crowdin/github-action?tab=readme-ov-file#permissions
+permissions:
+ contents: write
+ pull-requests: write
+
jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest