Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling coverage reporting from PRs from forked repositories on Github Actions #453

Open
tomato42 opened this issue Jan 28, 2021 · 0 comments
Assignees

Comments

@tomato42
Copy link

I've recently migrated from travis to github actions, and while most of the stuff works, the code coverage for PRs coming from forks doesn't.

This is because the CC_TEST_REPORTER_ID is not set then by github, see the Github documentation:
https://docs.github.com/en/actions/reference/encrypted-secrets#using-encrypted-secrets-in-a-workflow

With the exception of GITHUB_TOKEN, secrets are not passed to the runner when a workflow is triggered from a forked repository.

and with no CC_TEST_REPORTER_ID the submission fails:
https://github.com/tlsfuzzer/tlslite-ng/runs/1785404408?check_suite_focus=true#step:32:9

At the same time, coverage reporting to coveralls.io does, as it uses the GITHUB_TOKEN to authenticate to the coveralls.io API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants