Merge branch 'master' into add_support_for_branch

This commit is contained in:
Adam Kobi authored and GitHub committed 2019-01-13 13:58:07 +02:00
commit 77b6d90a16
5 files changed
+138 -36

No files matched your search

+11
View File
@@ -51,9 +51,20 @@ func auditGithubPR() ([]Leak, error) {
}
files := commit.Files
for _, f := range files {
skipFile := false
if f.Patch == nil || f.Filename == nil {
continue
}
for _, re := range whiteListFiles {
if re.FindString(f.GetFilename()) != "" {
log.Infof("skipping whitelisted file (matched regex '%s'): %s", re.String(), f.GetFilename())
skipFile = true
break
}
}
if skipFile {
continue
}
diff := gitDiff{
sha: commit.GetSHA(),