Skip to content

Commit

Permalink
fix(testworkflows): don't resolve environment variables if they are d…
Browse files Browse the repository at this point in the history
…ynamic (i.e. from secrets) (#5485)
  • Loading branch information
rangoo94 authored May 23, 2024
1 parent fac4609 commit f4940f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ func (c *container) Resolve(m ...expressionstcl.Machine) error {
env := c.Env()
name = name[4:]
for i := range env {
if env[i].Name == name {
if env[i].Name == name && env[i].ValueFrom == nil {
value, err := expressionstcl.EvalTemplate(env[i].Value)
if err == nil {
return value, true
Expand Down

0 comments on commit f4940f7

Please sign in to comment.