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

Revert to passing the coverage report as an artefact #34

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

KevinBrowne
Copy link
Member

There is actually a point to passing the code coverage report around as an artefact. The whole point of not giving PRs from forks access to secrets is to prevent untrusted code from accessing and possibly exposing them. That protection is moot if the coverage report action, which does have access to the secrets, then runs the same untrusted code later to generate the report.

While we may need to check out the same revision on which the report was generated, that doesn't mean we should run the code in it!

There is actually a point to passing the code coverage report around
as an artefact. The whole point of not giving PRs from forks access to
secrets is to prevent untrusted code from accessing and possibly
exposing them. That protection is moot if the coverage report action,
which does have access to the secrets, then runs the same untrusted
code later to generate the report.

While we may need to check out the same revision on which the report
was generated, that doesn't mean we should run the code in it!
Copy link

codeclimate bot commented Mar 5, 2024

Code Climate has analyzed commit f2cd282 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (95% is the threshold).

This pull request will bring the total coverage in the repository to 95.6% (0.0% change).

View more on Code Climate.

@KevinBrowne KevinBrowne merged commit d8a8ea6 into master Mar 5, 2024
10 checks passed
@KevinBrowne KevinBrowne deleted the fix_cc_upload_workflow branch March 5, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant