Skip to content

Commit f484f4f

Browse files
Sherry-LinXinfengZhang
authored andcommitted
workflow: add workflow permission for all jobs
including Ubuntu/Windows Signed-off-by: Lin, Sherry <[email protected]>
1 parent e08be13 commit f484f4f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/ubuntu.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
- '.github/workflows/**'
1111
- '!.github/workflows/ubuntu.yml'
1212

13+
permissions: read
14+
1315
jobs:
1416
ubuntu-20-04:
1517
runs-on: ubuntu-20.04

.github/workflows/windows.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
- '!.github/workflows/windows.yml'
1313
- '!.github/workflows/EnterDevShell.ps1'
1414

15+
permissions: read
16+
1517
jobs:
1618
windows-msvc:
1719
runs-on: windows-2022

0 commit comments

Comments
 (0)