use go-gitlog as an alternative to git2go (#1393)

* use go-gitlog as an alternative to git2go

Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>

* set RELEASE to something to avoid failing binary-build step

Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>

---------

Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
This commit is contained in:
Matthias Bertschy
2023-10-15 14:16:05 +02:00
committed by GitHub
parent a5d1fa3f66
commit 3efa40e808
10 changed files with 161 additions and 80 deletions

View File

@@ -219,7 +219,7 @@ func getResourcesFromPath(ctx context.Context, path string) (map[string]reportha
if gitRepo != nil {
commitInfo, err := gitRepo.GetFileLastCommit(source)
if err != nil && !warnIssued {
logger.L().Ctx(ctx).Warning("Git scan skipped", helpers.Error(err))
logger.L().Debug("Git scan skipped", helpers.Error(err))
warnIssued = true // croak only once
}