Skip to content

Fix missing id and if on Setup uv step in code-complexity and code-duplication lock files - #1934

Draft
v1v with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-failing-github-actions-job
Draft

Fix missing id and if on Setup uv step in code-complexity and code-duplication lock files#1934
v1v with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-failing-github-actions-job

Conversation

Copilot AI commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

The gh-aw compiler v0.87.4 emitted the "Setup uv" step without id: setup-uv or the if: hashFiles('pyproject.toml', 'uv.lock') != '' guard when generating lock files that use uvx via the Serena MCP (gh-aw-code-complexity-detector, gh-aw-code-duplication-detector). Because this repo contains pyproject.toml and uv.lock, the "Expose uv in workspace" step ran with UV_PATH="" and failed:

ln: failed to create symbolic link '/opt/hostedtoolcache/gh-aw-tools/current/x64/bin/uv' -> '': No such file or directory

Without an explicit id: on the step, ${{ steps.setup-uv.outputs.uv-path }} always resolves to an empty string regardless of whether setup-uv ran successfully.

Changes

  • gh-aw-code-complexity-detector.lock.yml — Add id: setup-uv and if: hashFiles('pyproject.toml', 'uv.lock') != '' to the "Setup uv" step, matching the correct pattern in all other compiled lock files.
  • gh-aw-code-duplication-detector.lock.yml — Same fix.

Before (broken — emitted by compiler v0.87.4 for workflows using uvx):

- name: Setup uv
  # zizmor: ignore[github_action_from_unverified_creator_used]
  uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1

After (matches the correct pattern in all other lock files):

- id: setup-uv
  if: hashFiles('pyproject.toml', 'uv.lock') != ''
  name: Setup uv
  # zizmor: ignore[github_action_from_unverified_creator_used]
  uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1

…plication lock files

Co-authored-by: v1v <2871786+v1v@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix the failing GitHub Actions job 'run / agent' Fix missing id and if on Setup uv step in code-complexity and code-duplication lock files Aug 27, 2026
Copilot finished work on behalf of v1v August 27, 2026 14:10
Copilot AI requested a review from v1v August 27, 2026 14:10
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.

2 participants