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
* add explicit working dir to intall tools step
* add registry flag
* derive nuget feed uri in script
* remove use of powershell-yaml
* replace rush update purge
* set npm userconfig for all npm subprocessess
* use npmrc for subsequent npm auth
* ensure deps downloaded
* add logging to determine failure
* resolve autorest modelerfour
* ensure autorest doesnt reach for npm registry
* ensure autorest is electing cached files
* fix args
* retrieve nuget without blocked call
* pick up auth from npmrc file
* move from global to local build
* Address PR review: harden network isolation in release pipeline
- Add --no-install to all npx calls (rush, autorest) to prevent silent
registry downloads when tools are already installed locally
- Add --no-package-lock to npm install commands to avoid polluting the
working tree with package-lock.json that could be accidentally committed
- Gate autorest/npm diagnostics behind ENABLE_AUTOREST_DIAGNOSTICS env var
to avoid npm calls in network-isolated release pipelines
- Harden NuGet feed URL derivation with input normalization and validation
instead of fragile regex replacement
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* consolidate scripts and function
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
# Create NuGet.config to redirect dotnet restore to the private feed
40
+
# Normalize the registry URL and validate the expected suffix before transforming
41
+
$normalizedRegistry=$Registry.TrimEnd('/')
42
+
$npmSuffix="/npm/registry"
43
+
if (-not$normalizedRegistry.EndsWith($npmSuffix)) {
44
+
throw"Cannot derive NuGet feed URL: Registry '$Registry' does not end with '$npmSuffix'. Pass an explicit Azure Artifacts npm registry URL using the -Registry parameter."
Write-Host-ForegroundColor Yellow "WARNING: @autorest/modelerfour local cache not found at $modelerFourPath — autorest will attempt npm registry lookup (may fail in network-isolated environment)"
0 commit comments