Skip to content

armgit / ente

Public Imported from GitHub
0

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

ro

Manav Rathi0e4fa1ad4cf8
diff --git a/.github/workflows/auth-lint.yml b/.github/workflows/auth-lint.yml
index 2deaa285f7..e48317d59f 100644
--- a/.github/workflows/auth-lint.yml
+++ b/.github/workflows/auth-lint.yml
@@ -10,6 +10,9 @@ on:
env:
FLUTTER_VERSION: "3.24.3"
+permissions:
+ contents: read
+
jobs:
lint:
runs-on: ubuntu-latest
@@ -30,7 +33,7 @@ jobs:
exit 1
fi
done
-
+
- name: Verify all icons are less than 20KB
run: |
find assets/custom-icons -type f -name "*.svg" | while read -r file; do
diff --git a/.github/workflows/desktop-lint.yml b/.github/workflows/desktop-lint.yml
index 0c24a081ff..8480fabc0d 100644
--- a/.github/workflows/desktop-lint.yml
+++ b/.github/workflows/desktop-lint.yml
@@ -7,6 +7,9 @@ on:
- "desktop/**"
- ".github/workflows/desktop-lint.yml"
+permissions:
+ contents: read
+
jobs:
lint:
runs-on: ubuntu-latest
diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml
index b824fe5c32..1737775726 100644
--- a/.github/workflows/docs-deploy.yml
+++ b/.github/workflows/docs-deploy.yml
@@ -10,6 +10,9 @@ on:
# Also allow manually running the workflow
workflow_dispatch:
+permissions:
+ contents: read
+
jobs:
deploy:
runs-on: ubuntu-latest
diff --git a/.github/workflows/docs-verify-build.yml b/.github/workflows/docs-verify-build.yml
index e07f9f973f..a0b4cc359a 100644
--- a/.github/workflows/docs-verify-build.yml
+++ b/.github/workflows/docs-verify-build.yml
@@ -10,6 +10,9 @@ on:
- "docs/**"
- ".github/workflows/docs-verify-build.yml"
+permissions:
+ contents: read
+
jobs:
verify-build:
runs-on: ubuntu-latest
diff --git a/.github/workflows/infra-deploy-staff.yml b/.github/workflows/infra-deploy-staff.yml
index dd68a14a26..6f1bf7212e 100644
--- a/.github/workflows/infra-deploy-staff.yml
+++ b/.github/workflows/infra-deploy-staff.yml
@@ -10,6 +10,9 @@ on:
# Also allow manually running the workflow
workflow_dispatch:
+permissions:
+ contents: read
+
jobs:
lint:
runs-on: ubuntu-latest
diff --git a/.github/workflows/infra-lint-staff.yml b/.github/workflows/infra-lint-staff.yml
index 3f3612bd04..ed2189181d 100644
--- a/.github/workflows/infra-lint-staff.yml
+++ b/.github/workflows/infra-lint-staff.yml
@@ -7,6 +7,9 @@ on:
- "infra/staff/**"
- ".github/workflows/infra-deploy-staff.yml"
+permissions:
+ contents: read
+
jobs:
deploy:
runs-on: ubuntu-latest
diff --git a/.github/workflows/mobile-lint.yml b/.github/workflows/mobile-lint.yml
index 1edf5c875e..f404c5a65a 100644
--- a/.github/workflows/mobile-lint.yml
+++ b/.github/workflows/mobile-lint.yml
@@ -8,9 +8,11 @@ on:
- ".github/workflows/mobile-lint.yml"
env:
-
FLUTTER_VERSION: "3.24.3"
+permissions:
+ contents: read
+
jobs:
lint:
runs-on: ubuntu-latest
diff --git a/.github/workflows/server-lint.yml b/.github/workflows/server-lint.yml
index 2f126899ff..c823f57f9e 100644
--- a/.github/workflows/server-lint.yml
+++ b/.github/workflows/server-lint.yml
@@ -7,6 +7,9 @@ on:
- "server/**"
- ".github/workflows/server-lint.yml"
+permissions:
+ contents: read
+
jobs:
lint:
runs-on: ubuntu-latest
diff --git a/.github/workflows/web-deploy-one.yml b/.github/workflows/web-deploy-one.yml
index 28b9b8d1d1..62711ec7ae 100644
--- a/.github/workflows/web-deploy-one.yml
+++ b/.github/workflows/web-deploy-one.yml
@@ -15,6 +15,9 @@ on:
- "payments"
- "photos"
+permissions:
+ contents: read
+
jobs:
deploy:
runs-on: ubuntu-latest
diff --git a/.github/workflows/web-deploy-preview.yml b/.github/workflows/web-deploy-preview.yml
index fe60ccd36e..3590adac31 100644
--- a/.github/workflows/web-deploy-preview.yml
+++ b/.github/workflows/web-deploy-preview.yml
@@ -15,6 +15,9 @@ on:
- "payments"
- "photos"
+permissions:
+ contents: read
+
jobs:
deploy:
runs-on: ubuntu-latest
diff --git a/.github/workflows/web-deploy-staging.yml b/.github/workflows/web-deploy-staging.yml
index 4ea739324b..dddd03d53d 100644
--- a/.github/workflows/web-deploy-staging.yml
+++ b/.github/workflows/web-deploy-staging.yml
@@ -11,6 +11,9 @@ on:
# Also allow manually running the workflow
workflow_dispatch:
+permissions:
+ contents: read
+
jobs:
deploy:
runs-on: ubuntu-latest
diff --git a/.github/workflows/web-deploy.yml b/.github/workflows/web-deploy.yml
index 2064c13163..18dd252443 100644
--- a/.github/workflows/web-deploy.yml
+++ b/.github/workflows/web-deploy.yml
@@ -19,6 +19,9 @@ on:
# Also allow manually running the workflow
workflow_dispatch:
+permissions:
+ contents: read
+
jobs:
deploy:
runs-on: ubuntu-latest
diff --git a/.github/workflows/web-lint.yml b/.github/workflows/web-lint.yml
index 6eb2454a98..2971bc3718 100644
--- a/.github/workflows/web-lint.yml
+++ b/.github/workflows/web-lint.yml
@@ -7,6 +7,9 @@ on:
- "web/**"
- ".github/workflows/web-lint.yml"
+permissions:
+ contents: read
+
# Cancel in-progress lint runs when a new commit is pushed.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}