Checkmarx-GitLab Merge Request: 401 Unauthorized #748
-
ProblemI'm getting a 401 Unauthorized error in the GitLab job logs when running the
Problem DetailsI'm following the Checkmarx-GitLab integration as described in the guide here: https://checkmarx.atlassian.net/wiki/spaces/SD/pages/1929937052/GitLab+Integration I am able to successfully run scans without returning results back to GitLab. The scan results are showing in Checkmarx as expected. However, I am having trouble with the merge request comments. I am using the same template provided in the tutorial and I've added all of the variables that are required, including the personal access token I am not sure if this is an issue or if there is additional configuration required that the guide does not specify (or that I am missing). |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 10 replies
-
Hey @kayvonkhosrowpour , Thanks for the question! Can you do me a favor and try a curl command to create an issue to see if it works without Checkmarx? https://docs.gitlab.com/ee/api/issues.html Example: curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/4/issues?title=Issues%20with%20auth&labels=bug" |
Beta Was this translation helpful? Give feedback.
-
@kayvonkhosrowpour can you try changing this: CX_FLOW_BUG_TRACKER: "none" My thought is that the CX_FLOW_BUG_TRACKER_IMPL can't be "none". Let me know. |
Beta Was this translation helpful? Give feedback.
-
@kayvonkhosrowpour It overrides CX_FLOW_BUG_TRACKER but not CX_FLOW_BUG_TRACKER_IMPL. Can you reproduce this on a public project that I can fork? |
Beta Was this translation helpful? Give feedback.
-
I found the isssue! You must specify the following two environment variables:
|
Beta Was this translation helpful? Give feedback.
I found the isssue! You must specify the following two environment variables:
GITLAB_URL
andGITLAB_API_URL
For example: