From 75d6e1799fe7e77d668a3f0eea3649c58efd07ff Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 17 Apr 2018 11:48:23 +0200 Subject: [PATCH] Fix: Data is base64 encoded Signed-off-by: Knut Ahlers --- filters.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/filters.go b/filters.go index 61f3cdb..2c0984f 100644 --- a/filters.go +++ b/filters.go @@ -3,6 +3,7 @@ package main import ( "bufio" "context" + "encoding/base64" "strings" "github.com/google/go-github/github" @@ -55,7 +56,7 @@ func filterMakeJenkins(repo *github.Repository) bool { return false } - scanner := bufio.NewScanner(strings.NewReader(*fc.Content)) + scanner := bufio.NewScanner(base64.NewDecoder(base64.StdEncoding, strings.NewReader(*fc.Content))) for scanner.Scan() { if strings.HasPrefix(scanner.Text(), "jenkins:") { return true