RockteMQ-AI commented on issue #10617:
URL: https://github.com/apache/rocketmq/issues/10617#issuecomment-4969460509

   **Issue Evaluation**
   
   Category: `type/bug` (security) | Status: **Confirmed**
   
   Thank you @kobihikri for the responsible disclosure. The issue has been 
verified against the current codebase.
   
   **Root Cause:** The Codecov upload token is hardcoded in plaintext at line 
30 of `.github/workflows/coverage.yml` instead of referencing a repository 
secret.
   
   **Impact:** The token is publicly readable in the repository history. 
Codecov upload tokens have limited scope (coverage report uploads only), so the 
blast radius is bounded — but it should still be treated as compromised per 
standard security practice.
   
   **Severity:** Medium
   
   **Suggested remediation:**
   1. Rotate the current Codecov token immediately (regenerate in Codecov 
dashboard)
   2. Store the new token as a repository secret (e.g. `CODECOV_TOKEN`)
   3. Update the workflow to reference it: `token: $\{{ secrets.CODECOV_TOKEN 
}}`
   4. *(Optional)* Pin `codecov/codecov-action` and `actions/checkout` to full 
commit SHAs for supply-chain hardening
   
   A PR for the workflow change is welcome. Note that the token rotation itself 
must be done by a maintainer with repository admin access.
   
   ---
   *Automated evaluation by RockteMQ-AI*


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to