Skip to content

Commit 9ec1ffb

Browse files
authored
[gha] Make workflow permissions uniform (#4311)
1 parent 7135717 commit 9ec1ffb

13 files changed

Lines changed: 22 additions & 15 deletions

.github/workflows/backend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ concurrency:
1515
cancel-in-progress: true
1616
group: ${{ github.workflow }}-${{ github.ref_protected && github.run_id || github.event.pull_request.number }}
1717

18-
permissions: # added using https://github.com/step-security/secure-workflows
18+
permissions:
1919
contents: read
2020

2121
jobs:

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212
cancel-in-progress: true
1313
group: ${{ github.workflow }}-${{ github.ref_protected && github.run_id || github.event.pull_request.number }}
1414

15-
permissions: # added using https://github.com/step-security/secure-workflows
15+
permissions:
1616
contents: read
1717

1818
jobs:

.github/workflows/combine_deploy_image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
paths:
77
- "deploy/**"
88

9-
permissions: # added using https://github.com/step-security/secure-workflows
9+
permissions:
1010
contents: read
1111

1212
jobs:

.github/workflows/commit_message_check.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ concurrency:
88
cancel-in-progress: true
99
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
1010

11-
permissions: # added using https://github.com/step-security/secure-workflows
11+
permissions:
1212
contents: read
13-
pull-requests: write
1413

1514
jobs:
1615
commit-message-lint:
16+
permissions:
17+
contents: read
18+
pull-requests: write
1719
uses: sillsdev/FieldWorks/.github/workflows/CommitMessage.yml@28e9888c4c70a3af593b1b97b77954e04149059b

.github/workflows/database.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ concurrency:
1010
cancel-in-progress: true
1111
group: ${{ github.workflow }}-${{ github.ref_protected && github.run_id || github.event.pull_request.number }}
1212

13-
permissions: # added using https://github.com/step-security/secure-workflows
13+
permissions:
1414
contents: read
1515

1616
jobs:

.github/workflows/frontend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313
cancel-in-progress: true
1414
group: ${{ github.workflow }}-${{ github.ref_protected && github.run_id || github.event.pull_request.number }}
1515

16-
permissions: # added using https://github.com/step-security/secure-workflows
16+
permissions:
1717
contents: read
1818

1919
jobs:

.github/workflows/installer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ concurrency:
1616
cancel-in-progress: true
1717
group: ${{ github.workflow }}-${{ github.ref_protected && github.run_id || github.event.pull_request.number }}
1818

19-
permissions: # added using https://github.com/step-security/secure-workflows
19+
permissions:
2020
contents: read
2121

2222
jobs:

.github/workflows/labeler.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ name: "Pull Request Labeler"
44
on:
55
- pull_request_target
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
labeler:
912
permissions:

.github/workflows/localization_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ concurrency:
2525
cancel-in-progress: true
2626
group: ${{ github.workflow }}-${{ github.ref }}
2727

28-
permissions: # added using https://github.com/step-security/secure-workflows
28+
permissions:
2929
contents: read
3030

3131
jobs:

.github/workflows/maintenance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ concurrency:
1010
cancel-in-progress: true
1111
group: ${{ github.workflow }}-${{ github.ref_protected && github.run_id || github.event.pull_request.number }}
1212

13-
permissions: # added using https://github.com/step-security/secure-workflows
13+
permissions:
1414
contents: read
1515

1616
jobs:

0 commit comments

Comments
 (0)