Skip to content

[code sync] Merge code from sonic-net/sonic-buildimage:202511 to 202603 - #2866

Merged
mssonicbld merged 3 commits into
Azure:202603from
mssonicbld:sonicbld/202603-merge
Aug 6, 2026
Merged

[code sync] Merge code from sonic-net/sonic-buildimage:202511 to 202603#2866
mssonicbld merged 3 commits into
Azure:202603from
mssonicbld:sonicbld/202603-merge

Conversation

@mssonicbld

Copy link
Copy Markdown
Collaborator
* 68edfc568 - (head/202511) [202511] Backport docker-sonic-mgmt dependency and security updates from master (#28537) (2026-08-04) [Lun Yue]<br>```

…rom master (#28537)

* [202511] Backport docker-sonic-mgmt image and pipeline from master

Align the docker-sonic-mgmt image (Dockerfile.j2 and the ansible getattr
patch) and its build pipeline (.azure-pipelines/docker-sonic-mgmt.yml) with
master. SBOM generation/scan is intentionally left out because 202511 does not
carry the SBOM build machinery (the SBOM feature #27455 was never backported to
this branch). The pr_test_template call drops INCLUDE_JOBS because
sonic-mgmt@202511's pr_test_template.yml does not declare that parameter (job
selection there is impacted-area driven). Branch-specific fields (schedule/pr
branch filters and the sonic-mgmt resource ref) target 202511, and the
published image is tagged with the branch name (docker-sonic-mgmt:202511 and
:202511-lastbuild) instead of :latest/:lastbuild so it never overwrites
master's published mgmt image.

Signed-off-by: Lun Yue <17232861+lunyue-ms@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* [202511] ci: add Trivy vulnerability scan for docker-sonic-mgmt

202511 does not carry the SBOM-based vulnerability scan (scripts/sbom_*.py
are master-only). Reuse the branch's existing self-contained Trivy scan
(already used by docker-ptf.yml on 202511) for docker-sonic-mgmt: a new
optional trivy_scan job downloads the built image artifact, installs Trivy,
and scans it for MEDIUM/HIGH/CRITICAL vulnerabilities. Only the pipeline
YAML changes; no repo scripts are required.

Signed-off-by: Lun Yue <17232861+lunyue-ms@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Signed-off-by: Lun Yue <17232861+lunyue-ms@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Lun Yue (lunyue-ms) and others added 2 commits August 6, 2026 10:33
… (#28852)

The trivy_scan job declared "dependsOn: Build", but a job level dependsOn
can only reference another job within the same stage, and Build is a stage.
SecurityScan was therefore left without any job that could start it, and
the pipeline failed to compile with:

  Stage SecurityScan must contain at least one job with no dependencies.

The stage level "dependsOn: Build" already orders SecurityScan after the
build, so the job level one is dropped.

Signed-off-by: Lun Yue <17232861+lunyue-ms@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 81b1889d-9ef5-43c8-be2e-d78ab1bd5764
@mssonicbld
mssonicbld force-pushed the sonicbld/202603-merge branch from aa99d52 to 7121543 Compare August 6, 2026 03:03
@mssonicbld

Copy link
Copy Markdown
Collaborator Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@mssonicbld
mssonicbld merged commit 40c45f5 into Azure:202603 Aug 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants