- versions used (server: 8.9, scanner: 4.6.2)
- error observed: new code detection is incomplete after merging reference branch into target branch
- steps to reproduce:
- create new (target) branch from mainbranch,
- make and commit changes.
- merge (non-ff, merge commit for example) some OTHER changes to mainbranch
- merge mainbranch into target branch.
- run scan using new code detection reference branch of mainbranch
- note that new code detection doesn’t correctly show changes in step 2
- potential workaround:
git rebase $(git merge-base HEAD mainbranch)before running scanner in step 5