lemurheavy / coveralls-public

The public issue tracker for coveralls.io
http://coveralls.io
124 stars 7 forks source link

Bad response: 422 at public organization repo #1627

Closed kolosovpetro closed 2 years ago

kolosovpetro commented 2 years ago

Given:

The output of the action is: Error: Bad response: 422 {"message":"Couldn't find a repository matching this job.","error":true}

Please, clarify. Seems I do everything according to the guide

The pipeline output https://github.com/MangoInstantMessenger/MangoMessengerAPI/runs/5802535642?check_suite_focus=true

afinetooth commented 2 years ago

Hi @kolosovpetro.

It looks like you are using the Coveralls Github Action, which is one of the only integrations that diverges from the typical pattern of using the COVERALLS_REPO_TOKEN to identify your repo to the Coveralls API.

Instead, that integration requires you to pass the GITHUB_TOKEN for your repo as its identifier, which, according to the usage instructions & examples here, should be passed as follows:

 - name: Publish coverage report to coveralls.io
        uses: coverallsapp/github-action@master
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          path-to-lcov: MangoAPI.Tests/TestResults/coverage.info

Try that and let me know if it doesn't work.

kolosovpetro commented 2 years ago

@afinetooth thanks, it works now