Remove GithubFeedToken build parameter (#3184)

This commit is contained in:
Darii Nurgaleev
2021-04-15 17:05:57 +07:00
committed by GitHub
parent 94fc8cc0ba
commit 575108f5a1
5 changed files with 1 additions and 18 deletions

View File

@@ -80,9 +80,6 @@ Function GenerateResourcesAndImage {
.PARAMETER Force
Delete the resource group if it exists without user confirmation.
.PARAMETER GithubFeedToken
GitHub PAT to download tool packages from GitHub Package Registry
.PARAMETER AzureClientId
Client id needs to be provided for optional authentication via service principal. Example: "11111111-1111-1111-1111-111111111111"
@@ -109,8 +106,6 @@ Function GenerateResourcesAndImage {
[Parameter(Mandatory = $False)]
[int] $SecondsToWaitForServicePrincipalSetup = 30,
[Parameter(Mandatory = $False)]
[string] $GithubFeedToken,
[Parameter(Mandatory = $False)]
[string] $AzureClientId,
[Parameter(Mandatory = $False)]
[string] $AzureClientSecret,
@@ -120,12 +115,6 @@ Function GenerateResourcesAndImage {
[Switch] $Force
)
if ([string]::IsNullOrEmpty($GithubFeedToken))
{
Write-Error "'-GithubFeedToken' parameter is not specified. You have to specify valid GitHub PAT to download tool packages from GitHub Package Registry"
exit 1
}
$builderScriptPath = Get-PackerTemplatePath -RepositoryRoot $ImageGenerationRepositoryRoot -ImageType $ImageType
$ServicePrincipalClientSecret = $env:UserName + [System.GUID]::NewGuid().ToString().ToUpper();
$InstallPassword = $env:UserName + [System.GUID]::NewGuid().ToString().ToUpper();
@@ -235,6 +224,5 @@ Function GenerateResourcesAndImage {
-var "resource_group=$($ResourceGroupName)" `
-var "storage_account=$($storageAccountName)" `
-var "install_password=$($InstallPassword)" `
-var "github_feed_token=$($GithubFeedToken)" `
$builderScriptPath
}