aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bridge/core/token.go2
-rw-r--r--bridge/github/config.go3
2 files changed, 4 insertions, 1 deletions
diff --git a/bridge/core/token.go b/bridge/core/token.go
index 2ceabca2..449ebbb5 100644
--- a/bridge/core/token.go
+++ b/bridge/core/token.go
@@ -43,7 +43,7 @@ func NewToken(value, target string) *Token {
}
func (t *Token) ID() entity.Id {
- sum := sha256.Sum256([]byte(t.Value))
+ sum := sha256.Sum256([]byte(t.Target + t.Value))
return entity.Id(fmt.Sprintf("%x", sum))
}
diff --git a/bridge/github/config.go b/bridge/github/config.go
index 434a2c63..e76a14f4 100644
--- a/bridge/github/config.go
+++ b/bridge/github/config.go
@@ -11,6 +11,7 @@ import (
"net/http"
"os"
"regexp"
+ "sort"
"strconv"
"strings"
"syscall"
@@ -471,6 +472,8 @@ func getValidGithubRemoteURLs(remotes map[string]string) []string {
}
}
+ sort.Strings(urls)
+
return urls
}