Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
chore: fix some comments (#3098)
shangchenglumetroc4aab3fb5108
diff --git a/action.yml b/action.ymlindex da93288a6..218c3ba53 100644--- a/action.yml+++ b/action.yml@@ -43,7 +43,7 @@ runs:## Scan by BASE & HEAD user inputs #### If BASE == HEAD, exit with error ############################################- git status >/dev/null # make sure we are in a git repostiory+ git status >/dev/null # make sure we are in a git repositoryif [ -n "$BASE" ] || [ -n "$HEAD" ]; thenif [ -n "$BASE" ]; thenbase_commit=$(git rev-parse "$BASE" 2>/dev/null) || truediff --git a/pkg/config/detectors.go b/pkg/config/detectors.goindex 3fcc226e0..d161d79bb 100644--- a/pkg/config/detectors.go+++ b/pkg/config/detectors.go@@ -127,7 +127,7 @@ func (id DetectorID) String() string {return fmt.Sprintf("%s.v%d", name, id.Version)}-// allDetectors reutrns an ordered slice of all detector types.+// allDetectors returns an ordered slice of all detector types.func allDetectors() []DetectorID {all := make([]DetectorID, 0, len(dpb.DetectorType_name))for id := range dpb.DetectorType_name {diff --git a/pkg/sources/source_manager.go b/pkg/sources/source_manager.goindex e00626538..d3ba4a711 100644--- a/pkg/sources/source_manager.go+++ b/pkg/sources/source_manager.go@@ -245,7 +245,7 @@ func (s *SourceManager) preflightChecks(ctx context.Context) error {return ctx.Err()}-// run is a helper method to sychronously run the source. It does not check for+// run is a helper method to synchronously run the source. It does not check for// acquired resources. An error is returned if there was a fatal error during// the run. This information is also recorded in the JobProgress.func (s *SourceManager) run(ctx context.Context, source Source, report *JobProgress, targets ...ChunkingTarget) error {