Repository navigation
[devops] Restrict APIScan to main CI builds - #27614
rolfbjarne wants to merge 2 commits into
Conversation
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>
There was a problem hiding this comment.
🟢 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
mainand 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
|
@dalexsoto review |
dalexsoto
left a comment
There was a problem hiding this comment.
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.
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
🔥 [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
Html Report (VSDrops) Download Successes✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
3633acbc7149b960531dece0d54a2d2add95bd14↓ Azure DevOps pipeline validation was not run; the live PR definition still needs an administrator to disable it.
Summary
main, including manually queued runs.Validation