Use supported Copilot model IDs in threat detection driver defaults#37233
Merged
pelikhan merged 2 commits intoJun 6, 2026
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
pelikhan
June 6, 2026 02:03
View session
dcedf53
into
copilot/add-dedicated-driver-detection-job
1 check passed
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes the threat-detection job’s two-phase driver defaults by switching Phase 1 (triage) and Phase 2 (full analysis) to supported Copilot model IDs, addressing the 400 The requested model is not supported failure when no environment overrides are provided.
Changes:
- Updated Phase 1 default model from
claude-haiku-4-5→claude-haiku-4.5. - Updated Phase 2 default model from
claude-sonnet-4-5→claude-sonnet-4.5. - Simplified the BYOK provider missing-env error message to a single
process.stderr.write(...)call (no behavior change).
Show a summary per file
| File | Description |
|---|---|
| actions/setup/js/detection_job_driver.cjs | Updates default model IDs used by the detection driver’s triage + analysis phases and aligns inline docs/error string formatting. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/1 changed files
- Comments generated: 0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The detection job was invoking unsupported model IDs in its two-phase driver, causing
400 The requested model is not supportedand preventing detection output from being produced. This updates the default model names used by the detection path to supported Copilot IDs.Problem scope
actions/setup/js/detection_job_driver.cjs(triage + full analysis phases).Changes
claude-haiku-4-5toclaude-haiku-4.5.claude-sonnet-4-5toclaude-sonnet-4.5.GH_AW_DETECTION_SMALL_MODEL,GH_AW_DETECTION_LARGE_MODEL).Code example