Skip to content

Commit

Permalink
fix: add workflow permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
mhrstv committed Feb 1, 2025
1 parent 27e2134 commit 92fc4b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
build:
name: Build, Test & Package
runs-on: ubuntu-latest
permissions:
checks: write
actions: read
contents: read

steps:
- name: Checkout code
Expand All @@ -33,7 +37,7 @@ jobs:
run: dotnet test Tests/Tests.csproj --configuration Release --logger "trx;LogFileName=TestResults.trx" --results-directory ./TestResults

- name: Publish test results
if: always()
if: ${{ !github.event.pull_request.head.repo.fork }}
uses: dorny/test-reporter@v1
with:
name: Test Results
Expand Down

0 comments on commit 92fc4b5

Please sign in to comment.