Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to fetch result from a private repo under the same org in central mode. #297

Open
abhijit-nightfall opened this issue Nov 2, 2023 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@abhijit-nightfall
Copy link

abhijit-nightfall commented Nov 2, 2023

Central Repo Config
.octocov.yml

timeout: 60sec
central:
  reports:
    datastores:
      - artifact://org/repo-1
      - artifact://org/repo-2
  push:
    enable: true
  reReport:
    enable: true
  summary:
    if: true

Repo-1 Config
.octocov.yml

codeToTestRatio:
  code:
    - '**/*.go'
    - '!**/*_test.go'
  test:
    - '**/*_test.go'
diff:
  datastores:
    - artifact://${GITHUB_REPOSITORY}
push:
  if: is_default_branch
comment:
  if: is_pull_request
summary:
  if: true
report:
  if: is_default_branch
  datastores:
    - artifact://${GITHUB_REPOSITORY}

No Error in the Logs but the readme gets updated with a blank result -
Screenshot 2023-11-02 at 6 57 54 PM

@k1LoW
Copy link
Owner

k1LoW commented Nov 3, 2023

I have 2 questions.

  1. In Repo-1, is the coverage report shown?
  2. In Central Repo, do you grant permission (e.g. GITHUB_TOKEN) to retrieve data from external private repositories?

@k1LoW k1LoW added the help wanted Extra attention is needed label Nov 3, 2023
@abhijit-nightfall
Copy link
Author

In Repo-1, is the coverage report shown?
- yes, I can see the octocov report in the GitHub actions artifact, I can download it also.
In Central Repo, do you grant permission (e.g. GITHUB_TOKEN) to retrieve data from external private repositories?
- yes, I have. I have used the same token to fetch the artifact and download it using GitHub API and it worked fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants