Skip to content

Commit 70a6b22

Browse files
authored
chore: check if envvar has _password to handle it as secret (github#13)
Signed-off-by: Ivan Pedrazas <[email protected]>
1 parent 503092f commit 70a6b22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/create/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func run(ctx context.Context, buildURL, name, category, userProvidedImage string
165165
kv := args[i+1]
166166
parts := strings.SplitN(kv, "=", 2)
167167

168-
if strings.HasSuffix(parts[0], "_TOKEN") || strings.HasSuffix(parts[0], "_KEY") {
168+
if strings.HasSuffix(parts[0], "_TOKEN") || strings.HasSuffix(parts[0], "_KEY") || strings.HasSuffix(parts[0], "_PASSWORD"){
169169
secrets = append(secrets, servers.Secret{
170170
Name: secretName(name, parts[0]),
171171
Env: parts[0],

0 commit comments

Comments
 (0)