-
Notifications
You must be signed in to change notification settings - Fork 15
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
[TCE-897] Pull-Request from contributors can't find CODACY_PROJECT_TOKEN #84
Comments
Internal ticket created : TCE-897 |
I have met same issue:
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 codacy/codacy-coverage-reporter#502 (comment) |
Update: how I have resolved similar issue codacy/codacy-coverage-reporter#502 (comment) |
I was wrong: it was happend last day |
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?
The text was updated successfully, but these errors were encountered: