fix: recompile duplicate-code-detector workflow#7697
Merged
Conversation
The previous commits incorrectly hardcoded model 'sonnet-6x', removed model multipliers, and replaced SHA-pinned action refs with tag refs. The actual fix is a clean recompile — the .md source was correct as-is. The original failure was a missing GH_TOKEN issue, not a model problem. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Recompiles the generated duplicate-code-detector GitHub Actions workflow lock file from a clean source, restoring expected compiler output and aligning the workflow’s default AI credits limit with current compiler defaults.
Changes:
- Updates the workflow’s default
GH_AW_MAX_AI_CREDITSfallback from2000to1000in both the agent execution step and the failure-handling environment. - Keeps the model multipliers merge step in place (
merge_awf_model_multipliers.cjs) and preserves SHA-pinned action references in the compiled output.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/duplicate-code-detector.lock.yml | Regenerated compiled workflow; adjusts default AI credits fallback to 1000 while preserving expected compiled steps (including model multipliers merge). |
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.
Summary
Clean recompile of the duplicate-code-detector workflow. The previous commits by the coding agent incorrectly:
sonnet-6xmodel instead of using repository model variablesgithub/gh-aw-actions/setup@<sha>) with unpinned tag refsThe
.mdsource was correct as-is — the original workflow failure was caused by a missingGH_TOKEN(fixed separately), not a model configuration issue.Changes
.mdsource to main (no changes needed).lock.ymlfrom clean source2000→1000) per compiler defaults