Skip to content

Commit c5129ab

Browse files
committed
chore(ci): Disable pytest coverage comment for forked PRs
1 parent 561057f commit c5129ab

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,10 @@ jobs:
6868
pytest-cloud.xml \
6969
pytest.xml
7070
71+
# Disabled for forks because GITHUB_TOKEN doesn't have permissions to comment
7172
- name: Pytest coverage comment
7273
if: github.event_name == 'pull_request' && matrix.python-version ==
73-
env.COVERAGE_PYTHON
74+
env.COVERAGE_PYTHON && !github.event.pull_request.head.repo.fork
7475
uses: MishaKav/pytest-coverage-comment@v1
7576
with:
7677
pytest-xml-coverage-path: ./coverage.xml

0 commit comments

Comments
 (0)