Skip to content

Commit

Permalink
fix: [CI-14780]: Comments resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
ShobhitSingh11 committed Nov 21, 2024
1 parent f90bed3 commit 8d60bea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion engine/compiler/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,12 @@ func (c *Compiler) Compile(ctx context.Context, args runtime.CompilerArgs) runti
}

for _, s := range step.Secrets {

// if the secret was already fetched and stored in the
// secret map it can be skipped.
if _, ok := spec.Secrets[s.Name]; ok {
step.SpecSecrets = append(step.SpecSecrets, spec.Secrets[s.Name])
continue
}
secret, ok := c.findSecret(ctx, args, s.Name)
if ok {
s := &engine.Secret{
Expand Down

0 comments on commit 8d60bea

Please sign in to comment.