Skip to content

Commit 3f2563b

Browse files
authored
Add permissions to GH actions (#1413)
1 parent b8d7241 commit 3f2563b

File tree

9 files changed

+29
-4
lines changed

9 files changed

+29
-4
lines changed

.github/workflows/automerge.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name: Dependabot auto-merge
2-
on: pull_request
32

43
permissions:
54
contents: write
65
pull-requests: write
76

7+
on: pull_request
8+
89
jobs:
910
dependabot:
1011
runs-on: ubuntu-24.04

.github/workflows/backend.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: backend
2+
3+
permissions:
4+
contents: read
5+
26
on:
37
workflow_dispatch:
48
pull_request:

.github/workflows/contributors.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: contributors
22

3+
permissions:
4+
contents: write
5+
pull-requests: write
6+
37
on:
48
workflow_dispatch:
59
schedule:

.github/workflows/crowdin-pretranslate.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Run pre-translate with translation memory, all files/langs, at midnight daily.
22
name: Crowdin Updates
3+
4+
permissions:
5+
contents: read
6+
37
on:
48
schedule:
59
- cron: '0 0 * * *'

.github/workflows/docker-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: docker
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_dispatch:
58
pull_request:

.github/workflows/docker-publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: docker publish
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_dispatch:
58
push:

.github/workflows/docs-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
branches:
1010
- 'master'
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
build:
1417
runs-on: ubuntu-24.04

.github/workflows/docs-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: docs
22

3+
permissions:
4+
contents: write
5+
36
on:
47
workflow_dispatch:
58
push:
69
branches:
710
- 'master'
811

9-
permissions:
10-
contents: write
11-
1212
jobs:
1313
build:
1414
runs-on: ubuntu-24.04

.github/workflows/frontend.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: frontend
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_dispatch:
58
pull_request:

0 commit comments

Comments
 (0)