Skip to content

Commit

Permalink
fixed issue with converters
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-of-codecraft committed Oct 10, 2024
1 parent ead4d89 commit 6c9929e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions libs/digger_config/converters.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ func copyProjects(projects []*ProjectYaml) []Project {
}
}

var awsCognitoOidc *AwsCognitoOidcConfig = nil
if p.AwsCognitoOidcConfig != nil {
awsCognitoOidc = &AwsCognitoOidcConfig{
CognitoPoolId: p.AwsCognitoOidcConfig.CognitoPoolId,
AwsAccountId: p.AwsCognitoOidcConfig.AwsAccountId,
AwsRegion: p.AwsCognitoOidcConfig.AwsRegion,
SessionDuration: p.AwsCognitoOidcConfig.SessionDuration,
}
}

workflowFile := "digger_workflow.yml"
if p.WorkflowFile != nil {
workflowFile = *p.WorkflowFile
Expand All @@ -64,6 +74,7 @@ func copyProjects(projects []*ProjectYaml) []Project {
p.DependencyProjects,
driftDetection,
roleToAssume,
awsCognitoOidc,
p.Generated,
}
result[i] = item
Expand Down

0 comments on commit 6c9929e

Please sign in to comment.