I'm working on a Github code analysis module. My objective is to perform some code analysis on all coded and show results on security page.
Here is what I do,
- Initially, run scanning for all the files and upload SARIF files to GitHub.
- Then for each committed files we run code analysis and upload its SARIF file.
Everything run fine initially. For example, if there are 10 files and there are 20 security issues. It list 20 errors in security tab.
But if I commit, any file after modification. Then all the 20 errors are closed and only 1-2 errors from the committed file is displayed in GitHub security tab.
Please help how I can retain errors from all other files we generated initially.
Thank you in advance for your help and expertise.