403 on github webhook

Hi everyone,

Description

I’m trying to use codecov on a public repo (MikeDevresse/ApiResume) and I try to push my coverage files on codecov. The github actions works fine and says that it pushed it, but I don’t get anything on my panel and my webhooks tells me that I got a 403 error

{"detail":"You do not have permission to perform this action."}

Commit SHAs

22387efc2a62360d831278965ec52ae28e403b8e

Repository

MikeDevresse/ ApiResume

CI/CD or Build URL

Workflow file
Run result

Uploader

Github actions uploader

Codecov Output

==> linux OS detected
==> SHASUM file signed by key id 806bb28aed779869
==> Uploader SHASUM verified (f4daf62bfc474b5aeebb25b3cf1a467b01f930b404ba7e618abc6141b72a04a9  codecov)
/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov -n  -Q github-action-2.0.3 -f ./clover_application.xml -f ./clover_integration.xml -f ./clover_unit.xml -F tests -F  phpunit -F  symfony
[2021-08-25T10:55:48.493Z] ['info'] 
     _____          _
    / ____|        | |
   | |     ___   __| | ___  ___ _____   __
   | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |  __/ (_| (_) \ V /
    \_____\___/ \__,_|\___|\___\___/ \_/

  Codecov report uploader 0.1.0
[2021-08-25T10:55:48.510Z] ['info'] => Project root located at: /home/runner/work/ApiResume/ApiResume
[2021-08-25T10:55:48.510Z] ['info'] ->  Token found by environment variables
[2021-08-25T10:55:48.517Z] ['info'] Searching for coverage files...
[2021-08-25T10:55:48.522Z] ['info'] => Found 3 possible coverage files:
  ./clover_application.xml
  ./clover_integration.xml
  ./clover_unit.xml
[2021-08-25T10:55:48.522Z] ['info'] Processing ./clover_application.xml...
[2021-08-25T10:55:48.523Z] ['info'] Processing ./clover_integration.xml...
[2021-08-25T10:55:48.524Z] ['info'] Processing ./clover_unit.xml...
[2021-08-25T10:55:48.525Z] ['info'] Detected GitHub Actions as the CI provider.
[2021-08-25T10:55:48.526Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=github-action-2.0.3-uploader-0.1.0&token=*******&branch=dev&build=1166199986&build_url=https%3A%2F%2Fgithub.com%2FMikeDevresse%2FApiResume%2Factions%2Fruns%2F1166199986&commit=22387efc2a62360d831278965ec52ae28e403b8e&job=Dev%20pull%20requests&pr=&service=github-actions&slug=MikeDevresse/ApiResume&name=&tag=&flags=tests&parent=
[2021-08-25T10:55:48.833Z] ['info'] Uploading...
[2021-08-25T10:55:49.044Z] ['info'] {"status":"success","resultURL":"https://codecov.io/github/MikeDevresse/ApiResume/commit/22387efc2a62360d831278965ec52ae28e403b8e"}

Expected Results

Some result on the pannel

Actual Results

Nothing :frowning:

Additional Information

Codecov action workflow part:

- name: Upload coverage to Codecov
        uses: codecov/codecov-action@v2
        with:
          token: ${{ secrets.CODECOV_TOKEN }}
          files: ./clover_application.xml,./clover_integration.xml,./clover_unit.xml
          flags: tests, phpunit, symfony

I did try to change my secret and it is set.

Hi @MikeDevresse, apologies but I’m actually not sure what you mean by your panel. Also for public repos, the token is not necessary.

By panel I mean dashboard, the place where there is all my commits, when I go on a commit it tells me that an error occured

@MikeDevresse got it, ok well first thing is that I think the default branch isn’t set to dev. Just in case, you can change that here

@MikeDevresse part 2, are you doing a actions/checkout@v2 step before calling the Codecov uploader?

1 Like

That was it … Didn’t think I needed it since I push my artifacts and it did get my artifacts correctly

1 Like