# Codecov reporting coverage from someone else's PR rather than main repo's \`main\`

**URL:** <https://community.codecov.com/t/codecov-reporting-coverage-from-someone-elses-pr-rather-than-main-repos-main/4411>\
**Category:** Bug Fixes\
**Created:** [July 14, 2023, 6:09am UTC](https://community.codecov.com/t/codecov-reporting-coverage-from-someone-elses-pr-rather-than-main-repos-main/4411 "2023-07-14T06:09:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![arosen93](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/arosen93/32/3087_2.png) [@arosen93](https://community.codecov.com/u/arosen93)\
**Post date:** [July 14, 2023, 6:09am UTC](https://community.codecov.com/t/codecov-reporting-coverage-from-someone-elses-pr-rather-than-main-repos-main/4411/1 "2023-07-14T06:09:00Z")

</div>

## Before submitting a topic, please confirm the following

I have searched for similar issues before creating this topic.  
 I have verified that my repository is using the [Codecov GitHub app](https://github.com/apps/codecov), if using GitHub  
 I have [validated](https://docs.codecov.com/docs/codecov-yaml#validate-your-repository-yaml) my `codecov.yaml` configuration file.  
 I have filled out the below sections to the best of my ability.  
 I understand that the community boards are a free, best-effort tool. While we hope to have someone on the Codecov team resolve your problem quickly, this is not always possible.

### Description

As shown in the image below, the code report is for commit `8b4393d`, but that’s not a commit to `quacc/main`! It’s from a branch `main` but someone else’s fork that is opened in a PR (see [here](https://github.com/Quantum-Accelerators/quacc/pull/586/commits/8b4393d8e3597867e6f966d0ed6fe46caf0cf27e)). I don’t want the coverage report for `quacc/main` to reflect anything other than the coverage in, well, `quacc/main`.

Here is my yml file: [quacc/.codecov.yml at main · Quantum-Accelerators/quacc · GitHub](https://github.com/Quantum-Accelerators/quacc/blob/main/.codecov.yml)

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/2X/9/94fbfe13c33b009d3e895efdb176d00c4cd566fa.png)

### CI/CD URL

Please provide a link to the CI/CD run.

> **[Code coverage done right.](https://app.codecov.io/gh/Quantum-Accelerators/quacc/commit/c23a990b4a68a6db79e94bb55b599961c07d0af1)**
>
> Hosted coverage report highly integrated with GitHub, Bitbucket and GitLab. Awesome pull request comments to enhance your QA.

> **[GitHub - Quantum-Accelerators/quacc at c23a990b4a68a6db79e94bb55b599961c07d0af1](https://github.com/Quantum-Accelerators/quacc/tree/c23a990b4a68a6db79e94bb55b599961c07d0af1)**
>
> c23a990b4a68a6db79e94bb55b599961c07d0af1

### Codecov Output

N/A

### Expected Results

Coverage report should only be for `quacc/main`

### Actual Results

It’s for a PR.

### Additional Information

Here is the commit that the report should have been for: [Update .codecov.yml · Quantum-Accelerators/quacc@ad9bcb2 · GitHub](https://github.com/Quantum-Accelerators/quacc/commit/ad9bcb2d4385a7253579876f32b8cd95fd33207a)

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [July 24, 2023, 11:30pm UTC](https://community.codecov.com/t/codecov-reporting-coverage-from-someone-elses-pr-rather-than-main-repos-main/4411/2 "2023-07-24T23:30:06Z")

</div>

@arosen93 I’ll take a look into this. There was an old bug where this would happen, but I’m pretty sure we squashed it a year ago.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [July 29, 2023, 12:21am UTC](https://community.codecov.com/t/codecov-reporting-coverage-from-someone-elses-pr-rather-than-main-repos-main/4411/3 "2023-07-29T00:21:01Z")

</div>

@arosen93 sorry for the delay, we are still actively working on this problem. It is quite a bit hairy, so I don’t have any resolution for you right now. This is a problematic workflow, and we’re hoping to fix it for our users.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [August 23, 2023, 2:51am UTC](https://community.codecov.com/t/codecov-reporting-coverage-from-someone-elses-pr-rather-than-main-repos-main/4411/4 "2023-08-23T02:51:11Z")

</div>

This [PR](https://github.com/codecov/uploader/pull/1132) should help address the problem

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [October 19, 2023, 8:59pm UTC](https://community.codecov.com/t/codecov-reporting-coverage-from-someone-elses-pr-rather-than-main-repos-main/4411/5 "2023-10-19T20:59:54Z")

</div>

@arosen93 I know this doesn’t really answer the question, but as the community boards are soon to be set to read-only, I wanted to follow-up here. We are still tracking the issue and working on making a fix. You can view the issue [here](https://github.com/codecov/engineering-team/issues/661).
