You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a failure of the GitLab Comment Reporter fails due to various reasons, it reports error messages with incorrect information, such as the name of the Token Variable, or referencing GitHub Comment reporter as it's own name.
To Reproduce
Steps to reproduce the behavior:
Configure a GitLab Access Token as instructed for the project, but use an invalid token.
Trigger a Pipeline through a push to a new branch and create an MR
Monitor the output from the MegaLinter job
An error will report that you may need to create a variable named MEGALINTER_ACCESS_TOKEN
[Gitlab Comment Reporter] You may need to define a masked Gitlab CI/CD variable MEGALINTER_ACCESS_TOKEN containing a personal token with scope 'api'
Under other circumstances error messages may refer to GitHub Comment Reporter. Assume this is a result of using the GitHub Comment Reporter code as a basis, and missing one or more references in making updates.
[GitHub Comment Reporter] Unable to post merge request comment
Expected behavior
When a token error is reported, it should identify the correct expected variable name:
[Gitlab Comment Reporter] You may need to define a masked Gitlab CI/CD variable GITLAB_ACCESS_TOKEN_MEGALINTER containing a personal token with scope 'api'
and
[GitLab Comment Reporter] Unable to post merge request comment
Additional context
I have been performing initial tests with a GitLab CE Omnibus install in our environment, and encountered these messages during testing.
The text was updated successfully, but these errors were encountered:
Describe the bug
When a failure of the GitLab Comment Reporter fails due to various reasons, it reports error messages with incorrect information, such as the name of the Token Variable, or referencing GitHub Comment reporter as it's own name.
To Reproduce
Steps to reproduce the behavior:
Under other circumstances error messages may refer to GitHub Comment Reporter. Assume this is a result of using the GitHub Comment Reporter code as a basis, and missing one or more references in making updates.
Expected behavior
When a token error is reported, it should identify the correct expected variable name:
and
Additional context
I have been performing initial tests with a GitLab CE Omnibus install in our environment, and encountered these messages during testing.
The text was updated successfully, but these errors were encountered: