Security: Codecov upload token committed in plaintext in .github/workflows/coverage.yml (please rotate + move to a secret)
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Start with .github/workflows/coverage.yml, especially the Codecov step around lines 26 and 30, and compare its credential handling with the other workflow secrets. Confirm with a maintainer that the exposed Codecov token has been rotated, then update the workflow to reference the repository secret. Done means no plaintext token remains and the coverage workflow still receives its upload credential.
Written by the indexing model from the issue text.
Description
What happened
.github/workflows/coverage.yml hardcodes a Codecov upload token in plaintext and passes it to a third-party action:
- line 30 —
token: <redacted>(a Codecov upload token, committed in the clear) - line 26 —
uses: codecov/codecov-action@v3 - line 16 —
uses: actions/checkout@master
(I've redacted the token value here on purpose and have not tested it against any service — I'm only reporting that a credential is committed.)
Why it matters
A credential committed to a public repository is readable by anyone and should be treated as compromised. Codecov upload tokens are limited in scope (they permit uploading coverage reports, not code push/read), so the blast radius is bounded — but the standard, low-risk fix is to rotate the token and move it to a repository secret. Every other credential in this repo's workflows already uses ${{ secrets.* }} (e.g. DOCKERHUB_TOKEN, NEXUS_PW), so this one line is the exception.
There's also a small supply-chain angle: the token is handed to codecov/codecov-action@v3 (a mutable major tag) in a job that also uses actions/checkout@master (a mutable branch), so pinning those to full commit SHAs would harden the path the credential flows through.
Suggested fix
- Rotate the current Codecov token (regenerate it in Codecov).
- Store it as a repository secret and reference it:
token: ${{ secrets.CODECOV_TOKEN }}. - (Optional) Pin
codecov/codecov-actionandactions/checkoutto full commit SHAs.
Happy to send a PR for the workflow change once the token is rotated (I understand PRs need an ICLA on file). I used AI assistance to spot this; I verified the file and line numbers myself and did not exfiltrate or use the credential.
- Dominant language
- Java
- Stars
- 22.6k
- Forks
- 12k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 25
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/rocketmq
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
[Bug] TopicValidator rejects V2 retry topic names containing `+` separator introduced by KeyBuilder Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100