Skip to content

feat(checkout): add name override for checkout steps; fix smoke workflow step names - #19216

Closed
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/align-checkout-step-name-again
Closed

feat(checkout): add name override for checkout steps; fix smoke workflow step names#19216
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/align-checkout-step-name-again

Conversation

Copilot AI commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

Checkout steps targeting external repos auto-generated names from the repository field (e.g. Checkout githubnext/gh-aw-side-repo), embedding implementation details and breaking the Checkout (descriptive-name) convention used everywhere else.

Changes

  • CheckoutConfig.Name field — new optional field; when set, generateCheckoutStepLines uses it as the step label instead of deriving one from repository/path
  • Schemaname added to checkoutConfig JSON schema with description and examples
  • ParsingcheckoutConfigFromMap now handles the name key
  • Smoke workflows — both smoke-create-cross-repo-pr.md and smoke-update-cross-repo-pr.md set name: side repo; recompiled lock files updated accordingly

Usage

checkout:
  - repository: githubnext/gh-aw-side-repo
    name: side repo          # step name → "Checkout side repo"
    token: ${{ secrets.GH_AW_SIDE_REPO_PAT }}

Without name, existing auto-generation behaviour is unchanged.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/graphql
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw GO111MODULE x_amd64/vet git rev-�� --show-toplevel x_amd64/vet /usr/bin/git -json GO111MODULE 64/pkg/tool/linu--show-toplevel git (http block)
  • https://api.github.com/repos/actions/ai-inference/git/ref/tags/v1
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha --show-toplevel node /tmp/go-build1371734339/b424/testutil.test --check scripts/**/*.js 64/bin/go /tmp/go-build1371734339/b424/testutil.test -tes�� -test.paniconexit0 -test.v=true /usr/bin/git -test.timeout=10git -test.run=^Test -test.short=true--show-toplevel git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v3
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha runs/20260302-132632-27267/test-2779849725/.github/workflows /tmp/go-build1371734339/b050/vet.cfg g_.a GOSUMDB GOWORK 64/bin/go /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet -uns�� -unreachable=false /tmp/go-build1371734339/b222/vet.cfg 1/x64/bin/node -json GO111MODULE 64/bin/go 1/x64/bin/node (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v5
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha -json .cfg 64/pkg/tool/linux_amd64/vet on; \ echo "���git GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet env -json GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha --git-dir go /usr/bin/git cp .github/aw/acgit GO111MODULE x_amd64/vet git rev-�� --show-toplevel x_amd64/vet /opt/hostedtoolcache/node/24.13.1/x64/bin/node -json GO111MODULE x_amd64/vet node (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha --show-toplevel 64/pkg/tool/linux_amd64/vet /usr/bin/git 611777140 .cfg 64/pkg/tool/linu--show-toplevel git rev-�� --show-toplevel 64/pkg/tool/linu4 /usr/bin/git -json GO111MODULE ache/go/1.25.0/x--show-toplevel git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha runs/20260302-132632-27267/test-722549198 -trimpath /usr/bin/gh -p github.com/githurev-parse -lang=go1.25 gh run list --json ache/node/24.13.1/x64/bin/node --workflow nonexistent-workrev-parse --limit ache/node/24.13.1/x64/bin/node (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha s/test.md -tests /usr/bin/git npx prettier --cgit GOPROXY 64/bin/go git rev-�� --show-toplevel sh ache/node/24.13.1/x64/bin/node "prettier" --chegit sh 64/bin/go ache/node/24.13.1/x64/bin/node (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha --show-toplevel 64/pkg/tool/linux_amd64/vet /usr/bin/git -json .cfg 64/pkg/tool/linu--show-toplevel git rev-�� --show-toplevel 64/pkg/tool/linux_amd64/vet /usr/bin/git -json GO111MODULE 64/pkg/tool/linu--show-toplevel git (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v8
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha 33KE/yZrWGJAYOKKGOSUMDB GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE 3510903/b389/imp-buildtags /hom�� che/go-build/a1/-errorsas **/*.cjs 64/bin/go **/*.json --ignore-path ../../../.pretti-bool /opt/hostedtoolc-buildtags (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha k/gh-aw/gh-aw/pk-errorsas GOPROXY 64/bin/go GOSUMDB GOWORK 64/bin/go /opt/hostedtoolc/tmp/go-build1371734339/b253/vet.cfg -o /tmp/go-build3433510903/b368/_pkGOINSECURE -trimpath 64/bin/go -d main -lang=go1.25 go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha "prettier" --check '**/*.cjs' '*GOINSECURE ache/go/1.25.0/x64/src/testing/iGOMOD 64/bin/go GOSUMDB GOWORK 64/bin/go /opt/hostedtoolc/tmp/go-build1371734339/b265/vet.cfg -o /tmp/go-build3433510903/b387/_pkGOINSECURE -trimpath 64/bin/go -p github.com/charm-test.testlogfile=/tmp/go-build1371734339/b001/testlog.txt -lang=go1.24 go (http block)
  • https://api.github.com/repos/actions/setup-go/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq .object.sha /tmp/go-build1371734339/b416/sliceutil.test -importcfg /usr/bin/git -s -w -buildmode=exe git init�� testing.testBinary=1 -extld=gcc (http block)
  • https://api.github.com/repos/actions/setup-node/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha s/test.md -trimpath ache/node/24.13.1/x64/bin/node -p main -lang=go1.25 /usr/bin/git t-41�� k/gh-aw/gh-aw/.github/workflows/agent-performance-analyzer.md -dwarf=false /usr/bin/gh go1.25.0 -c=4 -nolocalimports gh (http block)
  • https://api.github.com/repos/actions/upload-artifact/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq .object.sha -json GO111MODULE /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet -uns�� -unreachable=false /tmp/go-build1371734339/b010/vet.cfg (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/1/artifacts
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet env -json .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12345/artifacts
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12346/artifacts
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 GO111MODULE x_amd64/link GOINSECURE GOMOD GOMODCACHE x_amd64/link env -json .cfg 64/pkg/tool/linu-nolocalimports GOINSECURE GOMOD GOMODCACHE Zm/GFtmVa307QDDN/tmp/go-build1371734339/b436/_testmain.go (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/2/artifacts
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/3/artifacts
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet env -json .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/4/artifacts
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet env ty-test.md .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/5/artifacts
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet env -json .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/github/gh-aw/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path cd actions/setup-errorsas GOPROXY 64/bin/go GOSUMDB GOWORK 64/bin/go sh -c "prettier" --che-errorsas node 64/bin/go prettier --write 64/bin/go go (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --workflow nonexistent-workflow-12345 --limit 100 -pack /home/REDACTED/work/gh-aw/gh-aw/pkg/sliceutil/sliceutil.go /home/REDACTED/work/gh-aw/gh-aw/pkg/sliceutil/sliceutil_test.go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --workflow nonexistent-workflow-12345 --limit 6 GOMOD GOMODCACHE x_amd64/vet env .version=e9bbf66-dirty" -o gh-aw-s GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq .object.sha -json GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet env 2454755589/.github/workflows .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/nonexistent/action/git/ref/tags/v999.999.999
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq .object.sha -json GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet env -json .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/nonexistent/repo/actions/runs/12345
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion GOINSECURE GOMOD GOMODCACHE x_amd64/link env -json .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE HC/wPHmRHH07drGotDxh6_4/9rUbv3kNtest@example.com (http block)
  • https://api.github.com/repos/owner/repo/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo 64/bin/go GOSUMDB GOWORK 64/bin/go sh -c "prettier" --che-errorsas sh 64/bin/go "prettier" --wri/opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo 64/bin/go GOSUMDB GOWORK 64/bin/go sh -c "prettier" --che-errorsas sh 64/bin/go tierignore (http block)
  • https://api.github.com/repos/owner/repo/contents/file.md
    • Triggering command: /tmp/go-build1371734339/b383/cli.test /tmp/go-build1371734339/b383/cli.test -test.testlogfile=/tmp/go-build1371734339/b383/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true GOINSECURE GOMOD GOMODCACHE 3510903/b398/imp-buildtags -c che/go-build/23/-errorsas GOPROXY 64/bin/go GOSUMDB GOWORK 64/bin/go /opt/hostedtoolc-buildtags (http block)
  • https://api.github.com/repos/test-owner/test-repo/actions/secrets
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name _Ul1/BjVFHDc496cGOSUMDB GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE 3510903/b418/imp-buildtags /hom�� che/go-build/3e/-errorsas **/*.cjs 64/bin/go **/*.json --ignore-path ../../../.pretti-bool go (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>[step-names] Align checkout step name in smoke cross-repo PR workflows with naming pattern</issue_title>
<issue_description>### Step Name Alignment Issues

Found in:

  • .github/workflows/smoke-create-cross-repo-pr.lock.yml
  • .github/workflows/smoke-update-cross-repo-pr.lock.yml

Summary

One new checkout step name embeds a raw org/repo path as the checkout target, inconsistent with the established Checkout (descriptive-name) pattern used in all other checkout steps across the codebase.

Issue Identified

[Medium Priority] Inconsistent Pattern: "Checkout githubnext/gh-aw-side-repo"

Current step name (both workflows):

  • Checkout githubnext/gh-aw-side-repo

Issue:
All other checkout steps use short, human-readable descriptive targets:

Step Name Target
Checkout repository generic current repo
Checkout actions folder folder name
Checkout PR branch branch description
Checkout .github and .agents folders folder names
Checkout githubnext/gh-aw-side-repo ❌ raw org/repo path

Using a raw org/repo path as a target:

  1. Embeds implementation details (specific org and repo name) directly in the step name — if the side repo is ever renamed or moved, the step name becomes stale without an obvious prompt to update it
  2. Breaks the convention of human-readable descriptive targets used consistently across all other checkouts

Suggested improvement:

  • Checkout githubnext/gh-aw-side-repoCheckout side repo

This is concise, follows the established pattern, and remains accurate regardless of the underlying repo path.


Agentic Task Description

To fix this:

  1. Review the context — Both smoke-create-cross-repo-pr.md and smoke-update-cross-repo-pr.md source files contain this step; confirm the suggested name is accurate
  2. Apply changes — Update the step name in the .md source files
  3. Recompile — Run gh aw compile smoke-create-cross-repo-pr.md and gh aw compile smoke-update-cross-repo-pr.md to regenerate the .lock.yml files
  4. Verify — Confirm the compiled .lock.yml files reflect the updated step names

Related Files

  • Source workflows: .github/workflows/smoke-create-cross-repo-pr.md, .github/workflows/smoke-update-cross-repo-pr.md
  • Compiled workflows: .github/workflows/smoke-create-cross-repo-pr.lock.yml, .github/workflows/smoke-update-cross-repo-pr.lock.yml
  • Naming patterns cache: /tmp/gh-aw/cache-memory/step-name-alignment.json

Priority

This issue is Medium Priority — the current name is unambiguous but creates an inconsistency with the established checkout naming pattern.


AI generated by Step Name Alignment for daily maintenance

Generated by Step Name Alignment

  • expires on Mar 4, 2026, 12:29 PM UTC

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Add `name` field to CheckoutConfig to allow overriding the auto-generated
step name. Update smoke-create-cross-repo-pr and smoke-update-cross-repo-pr
to use `name: side repo`, producing 'Checkout side repo' instead of
'Checkout githubnext/gh-aw-side-repo'. Recompile lock files.

Fixes #step-names issue.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Align checkout step name in smoke workflows feat(checkout): add name override for checkout steps; fix smoke workflow step names Mar 2, 2026
@pelikhan pelikhan closed this Mar 2, 2026
@github-actions
github-actions Bot deleted the copilot/align-checkout-step-name-again branch April 2, 2026 12:08
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.

[step-names] Align checkout step name in smoke cross-repo PR workflows with naming pattern

2 participants