# Code Coverage Unknown for Private Repo

**URL:** <https://discourse.julialang.org/t/code-coverage-unknown-for-private-repo/101315>\
**Category:** New to Julia\
**Tags:** codecov, github-actions\
**Created:** [July 7, 2023, 1:23pm UTC](https://discourse.julialang.org/t/code-coverage-unknown-for-private-repo/101315 "2023-07-07T13:23:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnS](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johns/32/38331_2.png) [@JohnS](https://discourse.julialang.org/u/JohnS)\
**Post date:** [July 7, 2023, 1:23pm UTC](https://discourse.julialang.org/t/code-coverage-unknown-for-private-repo/101315/1 "2023-07-07T13:23:33Z")

</div>

Thanks for your help; please let me know how I can be clearer etc.

1. I generated a pkg using the PkgTemplates “[A More Complicated Example](https://juliaci.github.io/PkgTemplates.jl/stable/user/#A-More-Complicated-Example-1)”.
2. Pushed the repo to GitHub; CI is passing.
3. Clicked the code cov unknown badge. This is where I think I’m having issues…
4. a) “add repository token as repository secret”. I named the secret CODECOV\_TOKEN and add the value, without the “codecov\_taken=” component. Is that correct?
5. b) “add Codecov to your GitHub Actions workflow yaml file”. It states to insert the below.

```julia
- name: Upload coverage reports to Codecov
  uses: codecov/codecov-action@v3
    env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

```

How do I edit the below yml file such that it picks up the code coverage token?

```julia
jobs:
  test:
    name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        version:
          - 'nightly'
        os:
          - ubuntu-latest
        arch:
          - x64
    steps:
      - uses: actions/checkout@v3
      - uses: julia-actions/setup-julia@v1
        with:
          version: ${{ matrix.version }}
          arch: ${{ matrix.arch }}
      - uses: julia-actions/cache@v1
      - uses: julia-actions/julia-buildpkg@v1
      - uses: julia-actions/julia-runtest@v1
      - uses: julia-actions/julia-processcoverage@v1
      - uses: codecov/codecov-action@v3
        with:
          files: lcov.info

```
