Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 8907fe9

Browse files
authored
[github workflow] Resolve token-permissions security alerts (#5627)
1 parent 810d834 commit 8907fe9

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/mirror.yml

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
push:
88
branches:
99
- 'main'
10+
11+
# Declare default permissions as read only.
12+
permissions: read-all
1013

1114
jobs:
1215
mirror_job:

.github/workflows/pull_request_label.yml

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
pull_request_target:
1313
types: [opened, synchronize, reopened, closed]
1414

15+
# Declare default permissions as read only.
16+
permissions: read-all
17+
1518
jobs:
1619
label:
1720
permissions:

.github/workflows/release.yml

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
branches:
55
- main
66

7+
# Declare default permissions as read only.
8+
permissions: read-all
9+
710
jobs:
811
release:
912
if: github.repository_owner == 'flutter'

0 commit comments

Comments
 (0)