Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

security: remove hardcoded Codecov token from .codecov.yml#3620

Merged
vangent merged 1 commit intogoogle:masterfrom
wadgamaraldeen:fix/codecov-token-leak
Sep 23, 2025
Merged

security: remove hardcoded Codecov token from .codecov.yml#3620
vangent merged 1 commit intogoogle:masterfrom
wadgamaraldeen:fix/codecov-token-leak

Conversation

Copy link
Contributor

wadgamaraldeen commented Sep 23, 2025

Summary

This PR removes a hardcoded Codecov upload token from .codecov.yml and replaces it with documentation advising the use of CI-provided secrets.

Rationale

Storing tokens in version control exposes them to anyone with read access to the repository, which can allow unauthorized uploads to the project's Codecov dashboard. This could be abused to:

  • Upload forged coverage reports.
  • Inflate/deflate project coverage metrics.
  • Pollute project history and reduce trust in CI/CD data.

Security Benefits

  • Prevents unauthorized manipulation of coverage data.
  • Aligns the project with best practices for secret management.
  • Reduces the risk of future supply-chain or CI/CD integrity issues.

References

Signed-off-by: Mustafa Adam ibnqamar10@gmail.com

Copy link

google-cla bot commented Sep 23, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

vangent merged commit 376e33c into google:master Sep 23, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants