Skip to content

fix: recompile duplicate-code-detector workflow#7697

Merged
lpcox merged 3 commits into
mainfrom
copilot/aw-fix-duplicate-code-detector
Jun 18, 2026
Merged

fix: recompile duplicate-code-detector workflow#7697
lpcox merged 3 commits into
mainfrom
copilot/aw-fix-duplicate-code-detector

Conversation

Copilot AI commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Clean recompile of the duplicate-code-detector workflow. The previous commits by the coding agent incorrectly:

  1. Hardcoded sonnet-6x model instead of using repository model variables
  2. Replaced SHA-pinned action refs (github/gh-aw-actions/setup@<sha>) with unpinned tag refs
  3. Removed the model multipliers merge step

The .md source was correct as-is — the original workflow failure was caused by a missing GH_TOKEN (fixed separately), not a model configuration issue.

Changes

  • Reverted .md source to main (no changes needed)
  • Recompiled .lock.yml from clean source
  • Only diff from main: default AI credits limit updated (20001000) per compiler defaults

GitHub Advanced Security started work on behalf of lpcox June 18, 2026 00:45 View session
GitHub Advanced Security finished work on behalf of lpcox June 18, 2026 00:47
Copilot AI requested a review from lpcox June 18, 2026 00:50
GitHub Advanced Security started work on behalf of lpcox June 18, 2026 00:50 View session
GitHub Advanced Security finished work on behalf of lpcox June 18, 2026 00:51
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>
@lpcox lpcox changed the title [WIP] Fix configuration issue in duplicate code detector fix: recompile duplicate-code-detector workflow Jun 18, 2026
GitHub Advanced Security started work on behalf of lpcox June 18, 2026 01:36 View session
@lpcox lpcox marked this pull request as ready for review June 18, 2026 01:37
Copilot AI review requested due to automatic review settings June 18, 2026 01:37
GitHub Advanced Security finished work on behalf of lpcox June 18, 2026 01:37

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.

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_CREDITS fallback from 2000 to 1000 in 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

@lpcox lpcox merged commit 20bcf27 into main Jun 18, 2026
34 checks passed
@lpcox lpcox deleted the copilot/aw-fix-duplicate-code-detector branch June 18, 2026 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants