Skip to content

Get Codecov to run on PRs from outside the project #1559

@matthewfeickert

Description

@matthewfeickert

Description

At the moment we have it so that Codecov will only run and report coverage on PRs made from branches on the main project, which basically limits it to only being useful to the core devs.

- name: Report core project coverage with Codecov
if: github.event_name == 'push' && matrix.python-version == 3.8 && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests

To make it a better experience for other contributors and to avoid having to make a shadow branch on the main project to trigger codecov we should figure out a way to get Codecov to run on all PRs in a way that doesn't leave the project open to security leaks.

Recent example PR where this happened: PR #1556

Metadata

Metadata

Assignees

No one assigned

    Labels

    CICI systems, GitHub ActionscommunityCommunication with usershelp wantedExtra attention is needed / contributions welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions