Skip to content

Commit

Permalink
Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
begonaguereca committed Nov 7, 2024
1 parent 5649673 commit f2091fd
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,15 @@ private async Task<string> GenerateSequentialGithubScript(IEnumerable<(string Na
content.AppendLine(EXEC_FUNCTION_BLOCK);

content.AppendLine(VALIDATE_GH_PAT);
if (await _ghesVersionChecker.AreBlobCredentialsRequired(ghesApiUrl))

if (await _ghesVersionChecker.AreBlobCredentialsRequired(ghesApiUrl, useGithubStorage))
{
if (awsBucketName.HasValue() || awsRegion.HasValue())
{
content.AppendLine(VALIDATE_AWS_ACCESS_KEY_ID);
content.AppendLine(VALIDATE_AWS_SECRET_ACCESS_KEY);
}
else
else if (!useGithubStorage)
{
content.AppendLine(VALIDATE_AZURE_STORAGE_CONNECTION_STRING);
}
Expand Down Expand Up @@ -131,14 +132,14 @@ private async Task<string> GenerateParallelGithubScript(IEnumerable<(string Name
content.AppendLine(EXEC_AND_GET_MIGRATION_ID_FUNCTION_BLOCK);

content.AppendLine(VALIDATE_GH_PAT);
if (await _ghesVersionChecker.AreBlobCredentialsRequired(ghesApiUrl))
if (await _ghesVersionChecker.AreBlobCredentialsRequired(ghesApiUrl, useGithubStorage))
{
if (awsBucketName.HasValue() || awsRegion.HasValue())
{
content.AppendLine(VALIDATE_AWS_ACCESS_KEY_ID);
content.AppendLine(VALIDATE_AWS_SECRET_ACCESS_KEY);
}
else
else if (!useGithubStorage)
{
content.AppendLine(VALIDATE_AZURE_STORAGE_CONNECTION_STRING);
}
Expand Down

0 comments on commit f2091fd

Please sign in to comment.