Azure DevOps Sprint 282 expands GitHub Advanced Security for Azure DevOps with Agentic Autofix in public preview. For supported dependency and code scanning alerts, the Copilot coding agent can inspect repository context, draft a change, and open a pull request. The feature accelerates remediation, but it does not automatically prove that a vulnerability is fixed or authorize the merge.
Key control: Agentic Autofix proposes code. Your branch policies, builds, tests, security scans, reviewers, and deployment approvals remain the security boundary.
What changed in Sprint 282
| Change | Status | Impact |
|---|---|---|
| Agentic Autofix for dependency and code scanning alerts | Public preview; access may remain limited | Creates proposed fixes as pull requests |
| Security overview risk and coverage metrics | Generally available | Organization-wide visibility into exposure and scanning coverage |
| Batch alert dismissal API | Available | Dismiss up to 100 alerts per repository and alert type |
| Advanced Security API repository references | Enforced pipeline requirement | Jobs must explicitly reference repositories they query |
| CodeQL compatibility changes | Platform constraint | macOS 27/Xcode 27 traced extraction limitations; Swift 6.4 unsupported |
How Agentic Autofix works
| Stage | Responsibility |
|---|---|
| Detection | Dependency scanning or code scanning creates a supported alert |
| Generation | Copilot explores checked-in repository context and instructions |
| Proposal | The agent prepares a diff and pull request |
| Validation | CI builds, tests, SAST, dependency scanning, and reviewers assess the change |
| Closure | After merge, the relevant scanner runs again and updates the alert |
Autofix supports dependency vulnerabilities and code scanning alerts, including supported CodeQL and third-party findings. It does not generate fixes for malware findings or secret scanning alerts. The pull request remains a proposal until a human and the normal engineering controls approve it.
Prerequisites and constraints
- GitHub Advanced Security for Azure DevOps must be licensed and enabled for the Azure Repos repository.
- Dependency scanning or code scanning must already produce supported alerts.
- Copilot Autofix must be enabled at organization, project, or repository scope.
- Documentation still describes access as limited public preview in some tenants and says additional users might not be accepted.
- A commit-author email policy can prevent the agent from committing or pushing the generated change.
- Preview functionality has no SLA and can change.
Safe implementation workflow
1. Start with a low-risk repository
Choose a maintained repository with reliable tests and a known dependency baseline. Avoid beginning with shared libraries or production deployment automation.
2. Add repository instructions
Check in concise instructions describing supported runtime versions, package manager, test commands, formatting, forbidden patterns, and security expectations. The agent can use repository instructions and relevant skills when preparing a fix.
3. Preserve mandatory controls
- Require pull requests and at least one qualified reviewer.
- Run unit, integration, SAST, dependency, and container scans as applicable.
- Block direct pushes to protected branches.
- Require environment approval for production.
- Generate an SBOM when dependencies change.
- Do not allow the generated pull request to modify or bypass its own security checks without additional review.
4. Validate the security outcome
A successful build does not prove remediation. Review the vulnerable data flow, test the exploit condition when safe, run the relevant scanner again, and confirm the alert is closed without introducing a functional regression.
5. Measure useful results
- Time from alert to reviewed pull request.
- Percentage of proposals accepted without major rewrite.
- Scanner-confirmed remediation rate.
- Regression and rollback rate.
- Reviewer effort compared with manual fixes.
Important pipeline access change
Pipelines that query Advanced Security data can now return permission errors or incomplete results when the job does not explicitly reference every repository being queried. Add a checkout step or a uses.repositories entry for script-only jobs. This preserves repository-scoped job tokens and should be treated as an access-control requirement, not bypassed with a broadly scoped PAT.
CodeQL compatibility warning
Sprint 282 also documents limitations with traced extraction on macOS 27 and Xcode 27, and Swift 6.4 is unsupported. Pin affected scans to macOS 26/Xcode 26 or earlier where required, or use a supported non-traced build mode for eligible languages.
Recommended pilot
- Select one dependency alert and one code scanning alert.
- Generate fixes without granting automatic merge.
- Compare the proposals against a manual remediation plan.
- Run the complete pipeline and scanners.
- Document failure modes, reviewer guidance, and rollback.
- Expand only after scanner-confirmed fixes are consistent.
Related Under Framework content: Dependabot inactive repository alerts and Govern GitHub Copilot Code Review.