Skip to content

Codacy Coverage Reporter fails with "Empty argument for --project-token" #448

@rlavolee

Description

@rlavolee

Describe the bug
The Codacy Coverage Reporter fails during the CI/CD pipeline with the error: Invalid configuration: Empty argument for --project-token. The coverage reporter downloads successfully but cannot execute because it doesn't receive the project token.

To Reproduce
Run cicd workflow.

Expected behavior
The Codacy Coverage Reporter should successfully receive the project token from GitHub Secrets and upload the coverage report to Codacy without errors.

Screenshots

Running command: /home/runner/.cache/codacy/coverage-reporter/14.1.0/codacy-coverage-reporter "report" -->
2025-09-08 11:38:25.466Z error [CodacyCoverageReporter] Invalid configuration: Empty argument for --project-token - (CodacyCoverageReporter.scala:28)

Additional context
It seems that CODACY_PROJECT_TOKEN is not set or empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions