[skip changelog] Remove unnecessary token input from Codecov upload steps of test workflow #886
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please check if the PR fulfills these requirements
before creating one)
Feature.
An outdated version of the
codecov/codecov-actionGitHub Actions action is pinned in thetestworkflow. This outdated version imposes a requirement for an upload token. This token is defined by a repository secret, which causes two issues:testworkflow fails when run in forks of the repository because they are missing this secret. This spurious failure will cause confusion to contributors who are checking to be sure their contribution will pass CI.pull_requestevents because GitHub Actions disables secrets when a workflow is triggered by an event from a fork.Modern versions of the
codecov/codecov-actionaction do not require the token when used in public repositories.The
v1ref of thecodecov/codecov-actionGitHub Actions action is specified by thetestworkflow. In addition to making the token unnecessary, this will also cause the workflow to automatically use the latest 1.x.x version of the action, so we will continue to benefit from the ongoing development work up to the point where any breaking changes cause them to do a major version bump.The
codecov/codecov-actionaction'stokeninput is not used in thetestworkflow, eliminating the workflow's dependence on repository secrets.No.