Skip to content

Commit

Permalink
fix: prioritize awsProfile over lookupDefaultAwsCredentials
Browse files Browse the repository at this point in the history
  • Loading branch information
jGleitz authored and vlsi committed Feb 13, 2025
1 parent 2fd3cfd commit e462cfe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ class AwsS3BuildCacheServiceFactory : BuildCacheServiceFactory<AwsS3BuildCache>
val credentials = when {
config.credentialsProvider != null -> config.credentialsProvider
config.awsAccessKeyId.isNullOrBlank() || config.awsSecretKey.isNullOrBlank() -> when {
config.lookupDefaultAwsCredentials -> return
!config.awsProfile.isNullOrBlank() ->
ProfileCredentialsProvider.create(config.awsProfile)
config.lookupDefaultAwsCredentials -> return
else -> AnonymousCredentialsProvider.create()
}
else ->
Expand Down

0 comments on commit e462cfe

Please # to comment.