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 committed Feb 21, 2024
1 parent e08be13 commit e676489
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 e676489

Please sign in to comment.