Merge pull request #3661 from rgammans/azure_sas_support

add SAS authentication option for Azure repos
This commit is contained in:
MichaelEischer authored and GitHub committed 2022-07-23 10:32:03 +02:00
commit 827ab02eea
6 files changed
+56 -4

No files matched your search

+4
View File
@@ -596,6 +596,10 @@ func parseConfig(loc location.Location, opts options.Options) (interface{}, erro
cfg.AccountKey = options.NewSecretString(os.Getenv("AZURE_ACCOUNT_KEY"))
}
if cfg.AccountSAS.String() == "" {
cfg.AccountSAS = options.NewSecretString(os.Getenv("AZURE_ACCOUNT_SAS"))
}
if err := opts.Apply(loc.Scheme, &cfg); err != nil {
return nil, err
}