Skip to content

Commit db78acc

Browse files
committed
🔧 Update permissions for code-coverage commenting
1 parent 39db2bd commit db78acc

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/test_code.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ jobs:
1111
run_tests:
1212
runs-on: ubuntu-latest
1313
name: Run Python tests
14+
permissions:
15+
# Gives the action the necessary permissions for publishing new
16+
# comments in pull requests.
17+
pull-requests: write
18+
# Gives the action the necessary permissions for pushing data to the
19+
# python-coverage-comment-action branch, and for editing existing
20+
# comments (to avoid publishing multiple comments in the same PR)
21+
contents: write
1422
strategy:
1523
fail-fast: false
1624
matrix:

0 commit comments

Comments
 (0)