You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/bootstrap-demo-apps.ps1
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,18 @@ if ($null -eq $OrgAdminToken) {
59
59
$OrgAdminToken=Read-Host-Prompt 'Enter ORG_ADMIN_TOKEN for wiki push (or press Enter to skip)'
60
60
}
61
61
62
+
# Resolve scanner URL from Azure deployment or environment variable
63
+
$ScannerUrl=$env:SCANNER_URL
64
+
if (-not$ScannerUrl) {
65
+
$null= az account show 2>&1
66
+
if ($LASTEXITCODE-eq0) {
67
+
$ScannerUrl= az deployment group show --resource-group rg-a11y-scan-demo --name infra-deploy --query 'properties.outputs.webAppUrl.value'-o tsv 2>$null
68
+
}
69
+
}
70
+
if (-not$ScannerUrl) {
71
+
$ScannerUrl=Read-Host-Prompt 'Enter SCANNER_URL (scanner app base URL, or press Enter to skip)'
72
+
}
73
+
62
74
# Run OIDC setup if Azure CLI is logged in and secrets are being configured
63
75
if ($ConfigureSecrets) {
64
76
$null= az account show 2>&1
@@ -213,6 +225,17 @@ foreach ($app in $DemoApps) {
213
225
}
214
226
}
215
227
228
+
if ($ScannerUrl) {
229
+
Write-Host" Configuring SCANNER_URL for a11y scan workflow..."-ForegroundColor Gray
230
+
try {
231
+
gh secret set SCANNER_URL --repo $fullRepo--body $ScannerUrl
232
+
Write-Host" SCANNER_URL configured."-ForegroundColor Green
233
+
}
234
+
catch {
235
+
Write-Host" Warning: Could not configure SCANNER_URL: $_"-ForegroundColor Yellow
236
+
}
237
+
}
238
+
216
239
# Initialize wiki (required before workflows can push to it)
0 commit comments