Skip to content

Commit

Permalink
Add permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisDyallo committed May 6, 2024
1 parent e6298d8 commit 44c1d4e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build-pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ on:
- '**.sln'
- '.github/workflows/build-pull-requests.yml'
- '**.yml'

-
permissions:
pull-requests: write
checks: write
contents: read
packages: read

jobs:
test:
permissions:
pull-requests: write
checks: write
contents: read
name: Run tests
uses: ./.github/workflows/test.yml

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
permissions:
pull-requests: write
checks: write
packages: read
name: Run tests
uses: ./.github/workflows/test.yml

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
runs-on: macos-latest
permissions:
contents: read
packages: read

steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
packages: read

steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ jobs:
test:
runs-on: windows-latest
permissions:
packages: read
contents: read

steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ permissions:
pull-requests: write
contents: read
checks: write
packages: read

jobs:
test-windows:
Expand Down

0 comments on commit 44c1d4e

Please sign in to comment.