ci: rotate secret names
Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
65e429fc4a
commit
58423c262b
13 changed files with 45 additions and 45 deletions
|
|
@ -30,8 +30,8 @@ type awsCredentials struct {
|
|||
// If none of the environment variables is set, it returns nil.
|
||||
// If some but not all environment variables are set, it returns an error.
|
||||
func GetAWSCredentialsFromEnv() (*awsCredentials, error) {
|
||||
accessKeyId, akExists := os.LookupEnv("AWS_ACCESS_KEY_ID")
|
||||
secretAccessKey, sakExists := os.LookupEnv("AWS_SECRET_ACCESS_KEY")
|
||||
accessKeyId, akExists := os.LookupEnv("V2_AWS_ACCESS_KEY_ID")
|
||||
secretAccessKey, sakExists := os.LookupEnv("V2_AWS_SECRET_ACCESS_KEY")
|
||||
region, regionExists := os.LookupEnv("AWS_REGION")
|
||||
bucket, bucketExists := os.LookupEnv("AWS_BUCKET")
|
||||
|
||||
|
|
|
|||
|
|
@ -52,8 +52,8 @@ func GetAzureCredentialsFromEnv() (*azureCredentials, error) {
|
|||
storageAccessKey, sakExists := os.LookupEnv("AZURE_STORAGE_ACCESS_KEY")
|
||||
containerName, cExists := os.LookupEnv("AZURE_CONTAINER_NAME")
|
||||
subscriptionId, siExists := os.LookupEnv("AZURE_SUBSCRIPTION_ID")
|
||||
clientId, ciExists := os.LookupEnv("AZURE_CLIENT_ID")
|
||||
clientSecret, csExists := os.LookupEnv("AZURE_CLIENT_SECRET")
|
||||
clientId, ciExists := os.LookupEnv("V2_AZURE_CLIENT_ID")
|
||||
clientSecret, csExists := os.LookupEnv("V2_AZURE_CLIENT_SECRET")
|
||||
tenantId, tiExists := os.LookupEnv("AZURE_TENANT_ID")
|
||||
location, lExists := os.LookupEnv("AZURE_LOCATION")
|
||||
resourceGroup, rgExists := os.LookupEnv("AZURE_RESOURCE_GROUP")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue