Skip to content

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

@wadgamaraldeen
Copy link
Contributor

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 [email protected]

@google-cla
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 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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants