Skip to content

Commit

Permalink
priroitise azure pipelines creds
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredfholgate committed Jan 8, 2025
1 parent 7ec1435 commit 9d3f0b7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -775,19 +775,19 @@ func buildChainedTokenCredential(model providerData, options azidentity.DefaultA
var creds []azcore.TokenCredential

if model.UseOIDC.ValueBool() || model.UseAKSWorkloadIdentity.ValueBool() {
log.Printf("[DEBUG] oidc credential or AKS Workload Identity enabled")
if cred, err := buildOidcCredential(model, options); err == nil {
creds = append(creds, cred)
} else {
log.Printf("[DEBUG] failed to initialize oidc credential: %v", err)
}

log.Printf("[DEBUG] azure pipelines credential enabled")
if cred, err := buildAzurePipelinesCredential(model, options); err == nil {
creds = append(creds, cred)
} else {
log.Printf("[DEBUG] failed to initialize azure pipelines credential: %v", err)
}

log.Printf("[DEBUG] oidc credential or AKS Workload Identity enabled")
if cred, err := buildOidcCredential(model, options); err == nil {
creds = append(creds, cred)
} else {
log.Printf("[DEBUG] failed to initialize oidc credential: %v", err)
}
}

if cred, err := buildClientSecretCredential(model, options); err == nil {
Expand Down

0 comments on commit 9d3f0b7

Please sign in to comment.