Skip to content

Commit

Permalink
workflow: add workflow permission for all jobs
Browse files Browse the repository at this point in the history
including Ubuntu/Windows

Signed-off-by: Lin, Sherry <[email protected]>
  • Loading branch information
Sherry-Lin authored and XinfengZhang committed Feb 21, 2024
1 parent e08be13 commit f484f4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
- '.github/workflows/**'
- '!.github/workflows/ubuntu.yml'

permissions: read

jobs:
ubuntu-20-04:
runs-on: ubuntu-20.04
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
- '!.github/workflows/windows.yml'
- '!.github/workflows/EnterDevShell.ps1'

permissions: read

jobs:
windows-msvc:
runs-on: windows-2022
Expand Down

0 comments on commit f484f4f

Please sign in to comment.