Repository navigation
[vs18.0] Fix internal tool restore and remove sbom import - #14879
Conversation
1. Remove the internal tools restore step as that is already handled implicitly by the Arcade toolset 2. Remove the sbom step which is deprecated and emits an ADO warning
There was a problem hiding this comment.
Copilot review overview
Review tier: Lite
Findings: 1
New issues introduced by this change (1)
| Severity | Finding |
|---|---|
azure-pipelines/.vsts-dotnet-build-jobs.yml — The PR removes the generate-sbom.yml step, but the build still passes /p:GenerateSbom=true to… |
What changed in this PR
This PR updates the VS 18.0 Azure DevOps job template to remove redundant/deprecated pipeline steps, aligning the build with current Arcade/MicroBuild behavior.
Changes:
- Removed the explicit NuGet restore step for
eng\common\internal\Tools.csproj(internal tools restore). - Removed the deprecated SBOM generation pipeline template step.
| File | Description |
|---|---|
| azure-pipelines/.vsts-dotnet-build-jobs.yml | Removes the explicit internal tools restore and drops the deprecated SBOM pipeline step from the Windows_NT job. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
Expert Review — Pipeline Maintenance (vs18.0)
This PR makes two pipeline cleanup changes that are both justified and correct.
Change 1: Remove NuGetCommand@2 Restore Internal Tools
The explicit NuGetCommand@2 restore step for eng\common\internal\Tools.csproj is removed. This is consistent with the previous PR #14847 that switched to WIF-based internal feed authentication (enable-internal-sources.yml). The MicroBuild plugins handle their own tool acquisition via the authenticated feeds.
Change 2: Remove generate-sbom.yml template
The comment "Required by Microsoft policy" was outdated. The eng/common/core-templates/steps/generate-sbom.yml template itself now emits a deprecation warning:
"Including generate-sbom.yml is deprecated, SBOM generation is handled 1ES PT now. Remove this include."
SBOM generation continues via /p:GenerateSbom=true passed to the build script, so policy compliance is maintained through 1ES PT infrastructure.
Verdict
No issues found. Both removals are correct housekeeping for the vs18.0 branch: one removes a step made redundant by WIF auth (#14847), and the other removes a deprecated template that itself instructs consumers to remove it. ✅
Warning
Firewall blocked 2 domains
The following domains were blocked by the firewall during workflow execution:
awmgmcpgpatchdiff.githubusercontent.com
To allow these domains, add them to the
network.allowedlist in your workflow frontmatter:
network:
allowed:
- defaults
- "awmgmcpg"
- "patchdiff.githubusercontent.com"See Network Configuration for more information.
Generated by Expert Code Review (on open) for #14879 · 36.9 AIC · ⌖ 7.53 AIC · ⊞ 5K
|
/backport to vs18.6 |
|
Started backporting to |
|
@ViktorHofer backporting to git am output$ git cherry-pick 66fe0596c5c3cb75b30c2aa4e95f32630c996685
Auto-merging azure-pipelines/.vsts-dotnet-build-jobs.yml
CONFLICT (content): Merge conflict in azure-pipelines/.vsts-dotnet-build-jobs.yml
Auto-merging eng/Versions.props
CONFLICT (content): Merge conflict in eng/Versions.props
error: could not apply 66fe0596c... [vs18.0] Fix internal tool restore and remove sbom import (#14879)
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch
Applying: Fix vs18.0 internal tool restore and remove sbom import
Using index info to reconstruct a base tree...
M azure-pipelines/.vsts-dotnet-build-jobs.yml
Falling back to patching base and 3-way merge...
Auto-merging azure-pipelines/.vsts-dotnet-build-jobs.yml
CONFLICT (content): Merge conflict in azure-pipelines/.vsts-dotnet-build-jobs.yml
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Fix vs18.0 internal tool restore and remove sbom import
Error: The process '/usr/bin/git' failed with exit code 128 |
Manual backport of #14879 to fix the official build

Test build: https://dev.azure.com/devdiv/DevDiv/_build/results?buildId=15133518&view=results