Skip to content

Commit 20d5c09

Browse files
authored
set explicit permissions for GitHub workflows - all remaining workflows (#170)
1 parent 1169be7 commit 20d5c09

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

.github/workflows/create_automerge_pr.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ name: Create automerge PR
4040
# types: [..., ready_for_review]
4141
# ```
4242
# Unfortunately this will also re-trigger testing evenon a normal user's PR (which may have already been tested), but skipping them causes the checks to reset so this is the best we can do for now.
43+
44+
permissions:
45+
contents: read
46+
4347
on:
4448
workflow_call:
4549
inputs:

.github/workflows/performance_test.yml

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

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_call:
58
inputs:

.github/workflows/pull_request.yml

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

3+
permissions:
4+
contents: read
5+
36
on:
47
pull_request:
58
types: [opened, reopened, synchronize]

.github/workflows/swift_package_test.yml

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

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_call:
58
inputs:

0 commit comments

Comments
 (0)