Skip to content

Commit

Permalink
add permissions for paranoid repositories to coverage report
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
  • Loading branch information
jsoref committed Mar 8, 2024
1 parent 752c766 commit 53db407
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: coverage

on: [push]

# limit default permissions to just read-only checkouts
permissions:
contents: read

jobs:
coverage:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -48,6 +52,10 @@ jobs:
comment:
runs-on: ubuntu-latest
needs: [coverage]
permissions:
# needed to add coverage comment to the pull request
pull-requests: write

steps:
- uses: actions/github-script@v6
with:
Expand Down

0 comments on commit 53db407

Please sign in to comment.