Skip to content

[devops] Restrict APIScan to main CI builds - #27614

Open
rolfbjarne wants to merge 2 commits into
mainfrom
dev/rolf/super-broccoli
Open

rolfbjarne wants to merge 2 commits into
mainfrom
dev/rolf/super-broccoli

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 3633acbc7149b960531dece0d54a2d2add95bd14

Dimension Assessment Rationale
Change confidence 8/10 ↑ YAML parsed and trigger checks passed; two independent reviews found no actionable issues.
↓ Azure DevOps pipeline validation was not run; the live PR definition still needs an administrator to disable it.
Diagnosis confidence 9/10 ↑ The PR resource trigger had no branch filter, and the APIScan TSA upload ran for PR builds.
Evidence fit 9/10 ↑ Work item 3106773 links to APIScan build 16117419 from a PR build, matching the unwanted scan path.

Summary

  • Disable the PR APIScan pipeline by removing its resource trigger and making its remaining stage a no-op.
  • Restrict the CI APIScan resource trigger and scan stage to main, including manually queued runs.
  • Update the DevOps pipeline documentation.

Validation

  • YAML parsing and pipeline trigger checks passed.
  • Two independent read-only reviews found no actionable issues.
  • Azure DevOps pipeline validation was not run. The live PR pipeline definition remains enabled because this account lacks permission to disable it; after this change is merged, its YAML will not trigger APIScan and any manual run will skip the scan.

rolfbjarne and others added 2 commits December 3, 2026 15:07
Disable the PR APIScan pipeline and only trigger the CI scan after main builds.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Ensure manually queued scan pipelines do not run APIScan on other branches.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@rolfbjarne
rolfbjarne requested a review from dalexsoto as a code owner December 3, 2026 14:16
Copilot AI balanced review requested due to automatic review settings December 3, 2026 14:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the changes limiting APIScan to main CI builds and disabling PR scans.

No open issues 🎉

What changed in this PR

Restricts APIScan security checks to main CI builds in the Apple-platform build infrastructure and disables the PR scan pipeline.

Changes:

  • Filters CI completion triggers to main and adds a branch guard to the scan stage.
  • Replaces the PR scan pipeline with a skipped no-op stage.
  • Updates pipeline documentation to reflect these restrictions.
File Description
tools/​devops/​README.md Documents main-only CI scans and disabled PR scans.
tools/​devops/​automation/​templates/​governance/​stage.yml Guards scan execution with a main branch condition.
tools/​devops/​automation/​run-post-pr-build-api-scan.yml Removes the resource trigger and disables execution.
tools/​devops/​automation/​run-post-ci-build-api-scan.yml Limits CI resource triggers to main.

Review effort: Balanced

@rolfbjarne

Copy link
Copy Markdown
Member Author

@dalexsoto review

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the APIScan trigger, governance-stage condition, disabled PR pipeline, documentation and affected template consumers. The main-only branch/stage filters and manual-run guard match the intended behavior; no blocking issues found. Static review only; no builds or tests executed.

@MauiBot

MauiBot commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: 3633acbc7149b960531dece0d54a2d2add95bd14 [PR build]

@MauiBot

MauiBot commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

🔥 [CI Build #3633acb] Test results 🔥

Test results

❌ Tests failed on VSTS: test results

1 tests crashed, 1 tests failed, 132 tests passed.

Failures

❌ linker tests (iOS)

🔥 Failed catastrophically on VSTS: test results - linker_ios (no summary found).

Html Report (VSDrops) Download

❌ monotouch tests (iOS)

1 tests failed, 10 tests passed.

Failed tests

  • monotouch-test/iOS - simulator/Release (link sdk): TimedOut

Html Report (VSDrops) Download

Successes

✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download
✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 1 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 4 tests passed. Html Report (VSDrops) Download
✅ linker (MacCatalyst): All 12 tests passed. Html Report (VSDrops) Download
✅ linker (macOS): All 12 tests passed. Html Report (VSDrops) Download
✅ linker (tvOS): All 12 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 11 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 11 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 11 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ sharpie: All 1 tests passed. Html Report (VSDrops) Download
✅ windows: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

macOS tests

✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sequoia (15): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Tahoe (26): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Golden Gate (27): All 5 tests passed. Html Report (VSDrops) Download

Linux Build Verification

✅ Linux build succeeded

Pipeline on Agent
Hash: 3633acbc7149b960531dece0d54a2d2add95bd14 [PR build]

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants