Open shameem2001 opened 2 months ago
2024-09-09 09:50:23.366 ERROR 59 --- [ main] io.mixeway.scanner.utils.GitOperations : [GIT] Unable to load GIT informations reason - No HEAD exists and no explicit starting revision was specified
Are You sure that in -v ${PWD}:/opt/sources
Your current directory there is a git repository with a source code?
Can You output result of ls -la
before running docker command?
I have added bom.xml to root directory and backend directory by curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sudo sh -s -- -b /usr/local/bin syft dir:. -o cyclonedx-xml > bom.xml command. Should I have Sonatype oss setup or mvn setup ready?
so what scanner is looking for is .git repository as it is required to scan git reposutories.
It appear that Your location is not a git repository. As a workaround You can create dummy repo with
git init
git add .
git commit -m "dummy test"
it will do nothing but it will allow scanner to find a HEAD
I have done this and it didnt work.
Could you explain the correct steps to take while doing the scanning.