Skip to content

Find, verify, and analyze leaked credentials

use md5 hash for checking if key exists. (#1257)

ahrav6db770fbe5dd
diff --git a/pkg/sources/gcs/gcs.go b/pkg/sources/gcs/gcs.go
index 6658c5288..9f6f0103c 100644
--- a/pkg/sources/gcs/gcs.go
+++ b/pkg/sources/gcs/gcs.go
@@ -265,7 +265,7 @@ func (s *Source) Chunks(ctx context.Context, chunksChan chan *sources.Chunk) err
continue
}
- if persistableCache.Exists(o.name) {
+ if persistableCache.Exists(o.md5) {
ctx.Logger().V(5).Info("skipping object, object already processed", "name", o.name)
continue
}