Open asturio opened 8 months ago
Internal ticket created : TCE-897
I have met same issue:
Codacy / Codacy Coverage Reporter (pull_request)
Codacy / Codacy Coverage Reporter (push)
Both actions fall with message: ... error [CodacyCoverageReporter] Invalid configuration: Either a project or account API token must be provided or available in an environment variable - (CodacyCoverageReporter.scala:28)
@asturio there is strange behavior of the action: I just run it again and workflows are green, see https://github.com/codacy/codacy-coverage-reporter/issues/502#issuecomment-2107224244
Update: how I have resolved similar issue https://github.com/codacy/codacy-coverage-reporter/issues/502#issuecomment-2111096048
Update: how I have resolved similar issue codacy/codacy-coverage-reporter#502 (comment)
I was wrong: it was happend last day See [TCE-969] Pull request and push are failed: project or account API token not found
I setup this file in GitHub to report the coverage to codacy: https://github.com/LibrePDF/OpenPDF/blob/master/.github/workflows/maven.yml the relevant part is this:
This works great when pushes or PRs are from branches of the repository itself. But when someone clones the repository and create a pull request, than the
CODACY_PROJECT_TOKEN
is not found, even when the action is executed in my repository.Like in this case: https://github.com/LibrePDF/OpenPDF/actions/runs/8409782739
This is the error code:
Is this a bug in the reporter or a problem in my configuration?