Skip to content

Commit ca57d31

Browse files
authored
fix(secret): take only config file name (fanal#486)
1 parent 03b16ea commit ca57d31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

analyzer/secret/secret.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func (a SecretAnalyzer) Required(filePath string, fi os.FileInfo) bool {
132132
}
133133

134134
// Skip the config file for secret scanning
135-
if a.configPath == fileName {
135+
if filepath.Base(a.configPath) == filePath {
136136
return false
137137
}
138138

0 commit comments

Comments
 (0)