Skip to content

[ERROR] Not authorized or project not found. Please check the 'SONAR_TOKEN' environment variable, the 'sonar.projectKey' and 'sonar.organization' properties, or contact the project administrator to verify the token's permissions. #12570

Description

@pdurbin

While reviewing the following #12551 I noticed the following error:

Image

At https://github.com/IQSS/dataverse/actions/runs/30493484094/job/90717789386?pr=12551 I'm seeing the following error:

[ERROR] Not authorized or project not found. Please check the 'SONAR_TOKEN' environment variable, the 'sonar.projectKey' and 'sonar.organization' properties, or contact the project administrator to verify the token's permissions.

Here's a screenshot:

Image

This certainly results from our recent addition of a Sonar check:

I'm assuming the failure above happened because the pull request came from a fork.

How should we handle this? In this case @qqmyers is a member of the core dev team, so should we ask him to set up the credentials in his fork?

For random contributors, should we update the pull request template and dev guide to set expectations that this error is expected?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions