mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-12 02:44:10 +00:00
* fix #117 - handle whitespace in actrc secrets * Switch to raw string on regex pattern Co-authored-by: Casey Lee <[email protected]>
This commit is contained in:
1 parent
a5570ffdd6
commit
4f84be12e3
2 files changed
+3
-2
No files matched your search
+1
-1
@@ -14,7 +14,7 @@ type secrets map[string]string
|
||||
func newSecrets(secretList []string) secrets {
|
||||
s := make(map[string]string)
|
||||
for _, secretPair := range secretList {
|
||||
secretPairParts := strings.Split(secretPair, "=")
|
||||
secretPairParts := strings.SplitN(secretPair, "=", 2)
|
||||
if len(secretPairParts) == 2 {
|
||||
s[secretPairParts[0]] = secretPairParts[1]
|
||||
} else if env, ok := os.LookupEnv(secretPairParts[0]); ok && env != "" {
|
||||
|
||||
Reference in new issue
Block a user