Open mherger opened 3 months ago
Do you have any change in the sip-helper.js file? In order to raise an issue, The file should be part of PR.
If not, Please share us the diagnostics file by include include_diagnostics: true
. @mherger
I'm sorry, I can't share the actual file. But the change is a simple console.log()
statement after a return
:
return new SomeClass();
console.log('this is unreachable code');
return true;
FWIW: I have a ticket opened on your support system where the issue has been accepted as a bug. Your B.C. has responded:
I have went ahead and set up a bug report. The ticket number is STGCOV-4767. I will let you know when it reaches approved status or if they require further information.
Hi @mherger, Has there been any updates on this issue? I am working through the same issue. I introduced a change into a file in the PR, the issue was detected and included in the Bridge diagnostics, but the file was not considered as part of the PR despite it clearly being in the PR.
Unfortunately no, no real update. They've asked for more information once I asked for an update. And silence again.
Can we please get this to work. How come such a simple thing does not work. It is also broken for blackduck scans, but worked in version 0.3.4
Steps to get comments on PR:
NOTE: Comments on PR gets added only for newly added issues PR branch. If the same was already present in main branch code we will not get comments on PR.
Well, that's how it's supposed to be. This issue discussed here is about the fact that this doesn't work. At least not for us.
I currently have a support ticket open with Coverity to troubleshoot why my PR commenting doesn't work.
A few things that I've come across that may be helpful to others: 1) Git Branch names with spaces appears to break the plugin resulting in malformed HTTP requests that get rejected. I'll likely end up modifying our build scripts to sanitize the branch names. I'm assuming anything that needs to be escaped in a URL needs to be removed from the branch name. 2) Verify that that the Full scan stream name matches the stream calculated using the base ref in the PR section of the workflow. Any mismatch there will cause a 404 error to be present in the bridge diagnostics log. 3) The workflow yaml itself has permissions that may need to be changed. I tried the following thinking it would help, but it had no effect on my workflow. Maybe others would have better luck trying this (Or some variation).
permissions:
pull-requests: write
contents: read
discussions: write
I'll update here if I resolve my ticket, so there's at least a searchable solution public.
Would you be using the project_directory
configuration to tell Coverity what folder to scan?
Hi there
I have an integration with Coverity, which is supposed to report issues in a pull request. For this purpose I have enabled
coverity_prComment_enabled: true
. Yet, I don't get any PR comments. The workflow basically comes straight out of your documentation:The flag is confirmed in the action's output:
I added some dead code - which is correctly discovered:
The analytics data even confirms this was a new finding:
But then the bridge decides to still not report it, as "not part of PR":
What's wrong here?