Skip to content

Commit

Permalink
ci: add permission to write coverage comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeyan Li 李则言 committed Mar 12, 2024
1 parent 20d0aef commit eca1c0a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ on: [ push, pull_request ]

jobs:
test:
permissions:
# Gives the action the necessary permissions for publishing new
# comments in pull requests.
pull-requests: write
# Gives the action the necessary permissions for pushing data to the
# python-coverage-comment-action branch, and for editing existing
# comments (to avoid publishing multiple comments in the same PR)
contents: write

runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit eca1c0a

Please sign in to comment.