Skip to content

Commit 72e72cc

Browse files
committed
feat: added secret referencing regex
1 parent 1c552ae commit 72e72cc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

phase/misc/const.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ var (
2020
// Compiled regex patterns
2121
PssUserPattern = regexp.MustCompile(`^pss_user:v(\d+):([a-fA-F0-9]{64}):([a-fA-F0-9]{64}):([a-fA-F0-9]{64}):([a-fA-F0-9]{64})$`)
2222
PssServicePattern = regexp.MustCompile(`^pss_service:v(\d+):([a-fA-F0-9]{64}):([a-fA-F0-9]{64}):([a-fA-F0-9]{64}):([a-fA-F0-9]{64})$`)
23-
CrossEnvPattern = regexp.MustCompile(`\$\{(.+?)\.(.+?)\}`)
24-
LocalRefPattern = regexp.MustCompile(`\$\{([^.]+?)\}`)
23+
24+
//CrossEnvPattern = regexp.MustCompile(`\$\{(.+?)\.(.+?)\}`)
25+
// LocalRefPattern = regexp.MustCompile(`\$\{([^.]+?)\}`)
26+
27+
// Regex to identify secret references
28+
SecretRefRegex = regexp.MustCompile(`\$\{([^}]+)\}`)
2529
)
2630

2731

0 commit comments

Comments
 (0)