Skip to content

Commit

Permalink
Limit permissions of code coverage CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
fgrosse committed Apr 5, 2024
1 parent fdb422d commit 254f33a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
branches:
- 'main'

permissions:
contents: read

jobs:
unit_tests:
name: "Unit tests"
Expand Down Expand Up @@ -34,6 +37,8 @@ jobs:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
needs: unit_tests
permissions:
pull-requests: write # write permission needed to comment on PR
steps:
- uses: fgrosse/[email protected]
with:
Expand Down

0 comments on commit 254f33a

Please sign in to comment.