Skip to content

refactor: replace 45 repeated parse-and-assign blocks in extractSafeOutputsConfig with table-driven registry#31884

Closed
Copilot wants to merge 3 commits into
mainfrom
copilot/refactor-extract-safe-outputs-config
Closed

refactor: replace 45 repeated parse-and-assign blocks in extractSafeOutputsConfig with table-driven registry#31884
Copilot wants to merge 3 commits into
mainfrom
copilot/refactor-extract-safe-outputs-config

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 13, 2026

extractSafeOutputsConfig was a 637-line function consisting almost entirely of 45 near-identical blocks — making it the second-longest non-test function in pkg/. Adding a new safe-output type required touching this monolith, with no single overview of what handlers existed and easy-to-miss field-name inconsistencies.

Changes

  • New safeOutputExtractHandler struct with a single run func(c *Compiler, cfg *SafeOutputsConfig, m map[string]any) field — one entry per safe-output type in a safeOutputExtractHandlers slice.

  • 3-line dispatch loop replaces ~450 lines of repeated blocks in the function body:

    for _, h := range safeOutputExtractHandlers {
        h.run(c, config, outputMap)
    }
  • Two entry shapes in the table:

    • Shape A (41 entries): parse and assign when non-nil
    • Shape B (4 "default-on" entries: missing-tool, missing-data, noop, report-incomplete): same, plus fall back to a built-in default when the key is entirely absent
  • run function instead of parse any + assign: avoids the Go typed-nil-in-interface pitfall where a nil *T returned through any compares non-nil, which would silently break the Shape B default logic.

  • Scalar settings remain inline (staged, env, github-token, max-patch-size, allowed-domains, runs-on, messages, steps, etc.) — they are not handler-shaped.

extractSafeOutputsConfig function body: 637 → 335 lines. Adding a new handler now requires one table entry only.

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 gh repo view --json owner,name --jq .owner.login + "/" + .name x_amd64/vet gpg.program (http block)
    • Triggering command: /usr/bin/gh gh repo view --json owner,name --jq .owner.login + "/" + .name ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet .prettierignore --log-level=erroremote (http block)
    • Triggering command: /usr/bin/gh gh pr list --repo github/gh-aw --state all --author app/github-actions --search created:2026-05-11T23:58:00Z..2026-05-12T00:05:00Z --limit 1 --json number --jq .[0].number ../../../.prettiremote th: .path, createdAt: .created_at, startedAt: .run_started_at, updatedAt: .updated_at, event: .etest-logs/run-3 /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linu/tmp/TestParseDefaultBranchFromLsRemoteWithRealGitmaster_branch3-nolocalimports (http block)
  • https://api.github.com/orgs/owner/actions/secrets
    • Triggering command: /usr/bin/gh gh api /orgs/owner/actions/secrets --jq .secrets[].name */*.ts' '**/*.json' --ignore-path ../../../.prettierignore --local x_amd64/vet committer.email (http block)
    • Triggering command: /usr/bin/gh gh api /orgs/owner/actions/secrets --jq .secrets[].name ath ../../../.pr--ignore-path --jq ules/.bin/node 5706-16203/test-sh (http block)
    • Triggering command: /usr/bin/gh gh api /orgs/owner/actions/secrets --jq .secrets[].name ath ../../../.pr**/*.json --jq sv ExpressionCompilsh on 1/x64/bin/node gh er /ref/tags/v9 --jq x86_64/git ithub-script/gitgit infocmp ache/go/1.25.8/x/tmp/gh-aw-test-runs/20260513-070302-35972/test-source-field-variant-3612532559/.github/workflows gh (http block)
  • https://api.github.com/orgs/test-owner/actions/secrets
    • Triggering command: /usr/bin/gh gh api /orgs/test-owner/actions/secrets --jq .secrets[].name */*.ts' '**/*.json' --ignore-path ../../../.prettierignore --local x_amd64/vet committer.email (http block)
    • Triggering command: /usr/bin/gh gh api /orgs/test-owner/actions/secrets --jq .secrets[].name json' --ignore-ppkg/workflow/cache_memory_integration_test.go (http block)
    • Triggering command: /usr/bin/gh gh api /orgs/test-owner/actions/secrets --jq .secrets[].name /ref/tags/v9 --jq sv --write ../../../**/*.js--write ache/node/24.14.../../../**/*.json git comm�� th .prettierigno../../../.prettierignore Initial commit (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, .object.type] | @tsv --noprofile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq [.object.sha, .object.type] | @tsv npx prettier --write '**/*.cjs' '**/*.ts' '**/*.json' --ignore-path ../../../.pr**/*.json infocmp ache/node/24.14.1/x64/bin/node xterm-color 64/pkg/tool/linuapi /usr/bin/infocmp/repos/actions/github-script/git/ref/tags/v9 sh t-16�� k/gh-aw/gh-aw/.github/workflows/ace-editor.md infocmp /home/REDACTED/work/gh-aw/gh-aw/node_modules/.bin/node tierignore echo "��� Action-1 x_amd64/vet node (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq [.object.sha, .object.type] | @tsv sb5A/BFdO2w0fS5R5oKlNsb5A tname) ache/node/24.14.1/x64/bin/node **/*.ts **/*.json --ignore-path 1441293/b125/imp--jq t-27�� sistency_InlinedImports4111582246/001/noflag-a.md k/gh-aw/gh-aw/cmd/gh-aw/capitalization_test.go repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } sions.md config /usr/bin/infocmpxterm-color /opt/hostedtoolcache/go/1.25.8/x--jq (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, .object.type] | @tsv s "-s -w -X mainremote.upstream.url -buildtags ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet -errorsas -ifaceassert -nilfunc ache/go/1.25.8/x64/pkg/tool/linuupstream api OnlyCompiledOutput2002102156/001 --jq /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet js/**/*.json' --infocmp (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq [.object.sha, .object.type] | @tsv (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq [.object.sha, .object.type] | @tsv te '**/*.cjs' '*remote.origin.url git .cfg add remote1 1/x64/bin/node sh -c 0302-35972/test-227491013/.github/workflows git 1/x64/bin/node tierignore x_amd64/vet /usr/bin/git 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, .object.type] | @tsv _.a /tmp/go-build4261745049/b111/vet-nolocalimports bash (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq [.object.sha, .object.type] | @tsv sistency_GoAndJavaScript2015686068/001/test-frontmatter-with-arrremote.origin.url (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq [.object.sha, .object.type] | @tsv /ref/tags/v9 l sv -errorsas -ifaceassert -nilfunc node /tmp�� /ref/tags/v9 l sv origin .cfg 64/pkg/tool/linuxterm-color /opt/hostedtoolcache/node/24.14.1/x64/bin/node (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, .object.type] | @tsv t587010701/.github/workflows /tmp/go-build4261745049/b096/vet.cfg cfg (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv 1605351085/001 /tmp/go-build4261745049/b081/vet.cfg rtcfg.link ath ../../../.prinfocmp (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv -bool -buildtags cfg -errorsas -ifaceassert -nilfunc /opt/hostedtoolcache/go/1.25.8/xAdd workflow -ato�� 5706-16203/test-3176894884/.github/workflows -buildtags ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile -errorsas -ifaceassert -nilfunc ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile (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, .object.type] | @tsv 359082/b470/_pkg_.a test@example.com 359082/b470=> --get-regexp b/gh-aw/pkg/typedocker-cli-plugin-metadata x_amd64/vet git-upload-pack /tmp�� -aw/git/ref/tags/v2.0.0 x_amd64/vet ache/node/24.14.1/x64/bin/node get om/github/gh-aw x_amd64/vet ache/node/24.14.1/x64/bin/node (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq [.object.sha, .object.type] | @tsv k/gh-aw/gh-aw/.github/workflows/api-consumption-report.md -goversion /usr/bin/gh -c=4 -nolocalimports -importcfg 359082/b467/importcfg api mpleWorkflow2488427750/001 --jq /tmp/go-build755359082/b462/timeutil.test get --local x_amd64/compile /tmp/go-build755359082/b462/time--jq (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq [.object.sha, .object.type] | @tsv "prettier" --write '../../../**/remote.origin.url l "warnings":[]}] re --log-level=e/usr/libexec/docker/cli-plugins/docker-buildx /opt/hostedtoolcdocker-cli-plugin-metadata /node gh api /ref/tags/v9 --jq sv ithub-script/githead ache/go/1.25.8/x-500 odules/npm/node_/tmp/gh-aw/aw-feature-branch.patch git (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v9
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv js/**/*.json' --ignore-path ../../../.prettierignore (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv js/**/*.json' --- (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv js/**/*.json' ---p (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v9.0.0
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9.0.0 --jq [.object.sha, .object.type] | @tsv get --local x_amd64/vet http.https://gitbash (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9.0.0 --jq [.object.sha, .object.type] | @tsv o actions/setup-cli/install.sh..." --local x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9.0.0 --jq [.object.sha, .object.type] | @tsv --local --get x_amd64/vet (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, .object.type] | @tsv 5706-16203/test-260611989/.github/workflows (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv RequiresMinInteg--log-target ../../../**/*.jsjournal-or-kmsg (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv st-773188741 ../../../**/*.json flow.lock.yml ./../.prettieriginfocmp ../../../.pretti-1 bject.type] | @txterm-color e/git -c "prettier" --write '**/*.cjs' '**/*.ts' '**/*.json' --ignore-pat--repo git 1441293/b391/vet.cfg s remote (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, .object.type] | @tsv DefaultBranchFromLsRemoteWithRealGitcustom_branch3841319235/001' DefaultBranchFromLsRemoteWithRealGitcustom_branch3841319235/001' 1/x64/bin/node h ../../../.pretbash (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv 5706-16203/test-260611989/.github/workflows (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv 965325321 -buildtags /usr/bin/git -errorsas -ifaceassert -nilfunc git -C ithub-script/git/ref/tags/v9 config bject.type] | @tsv remote.origin.urls --local x_amd64/vet git (http block)
  • https://api.github.com/repos/actions/setup-node/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv t587010701 -buildtags .yml -errorsas -ifaceassert -nilfunc rtcfg -ato�� 5706-16203/test-769128919/.githu--detach -buildtags 64/pkg/tool/linux_amd64/compile -errorsas -ifaceassert -nilfunc 64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv D8dvAE8hX /tmp/go-build4261745049/b080/vet.cfg ache/go/1.25.8/x64/bin/go go1.25.8 -c=4 -nolocalimports /opt/hostedtoolcache/go/1.25.8/xtest@example.com rtcf�� (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv -unreachable=false /tmp/go-build4261745049/b170/vet.cfg cfg ath ../../../.prinfocmp (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, .object.type] | @tsv g/workflow/features_import_test.go g/workflow/import_schema_test.go cfg ath ../../../.prinfocmp (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv -bool on 1/x64/bin/node /../../.prettiergh erignore -nilfunc sh hash�� SameOutput2670831332/001/stability-test.md -tests 1/x64/bin/node /ref/tags/v9 x_amd64/compile erignore node (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv HEAD rsion=ffee81c-dirty k/gh-aw/node_modules/.bin/node ./../.prettieriggh --auto /usr/bin/git sh k/gh�� efaultBranchFromLsRemoteWithReal.github/workflows/test.md efaultBranchFromLsRemoteWithRealGitbranch_with_hyphen1311386119/001' 1/x64/bin/node (http block)
  • https://api.github.com/repos/aws-actions/configure-aws-credentials/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/aws-actions/configure-aws-credentials/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv /tmp/go-build755359082/b396/acti-f (http block)
    • Triggering command: /usr/bin/gh gh api /repos/aws-actions/configure-aws-credentials/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv 359082/b462/timeutil.test -trimpath 359082/b462/importcfg.link -p github.com/githu/opt/hostedtoolcache/node/24.14.1/x64/bin/npm -lang=go1.25 uaZfPHtRi8CIm/x9--package-lock-only --gi�� ry=1 --format=%(objectname) (http block)
    • Triggering command: /usr/bin/gh gh api /repos/aws-actions/configure-aws-credentials/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv /ref/tags/v9 infocmp sv xterm-color /opt/hostedtoolc-1 /usr/bin/gh /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet -ato�� 49840870/001 -buildtags sv -errorsas -ifaceassert -nilfunc /usr/lib/git-cor/tmp/gh-aw/aw-master.patch (http block)
  • https://api.github.com/repos/azure/login/git/ref/tags/v2
    • Triggering command: /usr/bin/gh gh api /repos/azure/login/git/ref/tags/v2 --jq [.object.sha, .object.type] | @tsv 359082/b458/testutil.test -buildtags ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet sions.md -ifaceassert -nilfunc ache/go/1.25.8/x--package-lock-only (http block)
    • Triggering command: /usr/bin/gh gh api /repos/azure/login/git/ref/tags/v2 --jq [.object.sha, .object.type] | @tsv runs/20260513-065947-26661/test-893719193/.github/workflows --write ache/node/24.14.1/x64/bin/node url --ignore-path ../../../.prettiinstall ache/node/24.14.--package-lock-only 8625�� uts.enforce_all == 'true' && 'furemote.upstream.url -buildtags (http block)
    • Triggering command: /usr/bin/gh gh api /repos/azure/login/git/ref/tags/v2 --jq [.object.sha, .object.type] | @tsv runs/20260513-070302-35972/test-3428981380/.github/workflows infocmp (http block)
  • https://api.github.com/repos/docker/login-action/git/ref/tags/v3
    • Triggering command: /usr/bin/gh gh api /repos/docker/login-action/git/ref/tags/v3 --jq [.object.sha, .object.type] | @tsv tructions-test-2559727203/.github/workflows -buildtags ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet sions.md -ifaceassert -nilfunc ache/go/1.25.8/x--package-lock-only (http block)
    • Triggering command: /usr/bin/gh gh api /repos/docker/login-action/git/ref/tags/v3 --jq [.object.sha, .object.type] | @tsv k/gh-aw/gh-aw/.github/workflows/artifacts-summary.md infocmp (http block)
    • Triggering command: /usr/bin/gh gh api /repos/docker/login-action/git/ref/tags/v3 --jq [.object.sha, .object.type] | @tsv k/gh-aw/gh-aw/.github/workflows/agent-performance-analyzer.md infocmp ache/node/24.14.1/x64/bin/node rror /opt/hostedtoolc/opt/hostedtoolcache/node/24.14.1/x64/bin/npm /usr/bin/gh ache/node/24.14.--package-lock-only 2446�� /tmp/gh-aw-test-runs/20260513-070302-35972/test-source-field-variant-2614439659 show .test js/**/*.json' --git --jq /usr/bin/infocmp. .test (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v0.1.2
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v0.1.2 --jq [.object.sha, .object.type] | @tsv t0 -tests Name,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle m0s (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v0.1.2 --jq [.object.sha, .object.type] | @tsv ExpressionCompiledOutput4011155824/001 on (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v0.1.2 --jq [.object.sha, .object.type] | @tsv ithub/workflows/architecture-guardian.md pkg/agentdrain/anomaly.go Name,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle ithub-script/gitinfocmp -1582123983/new.-1 (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v1.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.0.0 --jq [.object.sha, .object.type] | @tsv -bool -buildtags cfg -errorsas -ifaceassert -nilfunc /opt/hostedtoolccurrent (local changes) -ato�� ll-sweep (enforcbase (original) -buildtags ache/go/1.25.8/xnew (upstream) -errorsas -ifaceassert -nilfunc ache/go/1.25.8/x/tmp/gh-aw-merge-1195297873/new.md (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.0.0 --jq [.object.sha, .object.type] | @tsv ser.test -buildtags ortcfg.link nore -ifaceassert -nilfunc 99utIGwmeLqF0bSj^remote\..*\.gh-resolved$ -c te '**/*.cjs' '**/*.ts' '**/*.json' --ignore-path ../../../.pret.prettierignore -tests ca9c33c37007ba49f5b4d6f9a21f94dffb2429b4ce4aa638d8c582c0347c067b-d /ref/tags/v9 remote.origin.urapi sv sh (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.0.0 --jq [.object.sha, .object.type] | @tsv 0302-35972/test-add-source-path-3416397293/.github/workflows git m/_npx/b388654678d519d9/node_modules/.bin/sh ./../.prettieriggit Test commit 111,"compare_run-L sh -c te 'scripts/**/*base (original) infocmp nfig/composer/venew (upstream) xterm-color x_amd64/compile /usr/bin/infocmpxterm-color node (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v1.2.3
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv -unreachable=false /tmp/go-build4261745049/b178/vet-c=4 64/pkg/tool/linux_amd64/link ath ../../../.prinfocmp (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv ithub/workflows -tests k/gh-aw/gh-aw/actions/setup/js/node_modules/.bin/sh nore remote.origin.urrun sv sh -c te '**/*.cjs' '*--workflow git /home/node_modul--limit /ref/tags/v9 remote.origin.urapi sv sh (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv --noprofile git cal/bin/node ./../.prettieriggit gh sv sh ache�� "prettier" --wribase (original) /usr/bin/git /opt/hostedtoolcnew (upstream) heckout/git/ref/infocmp ^remote\..*\.gh--1 r npx (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --limit 100 --created >=2026-05-06 (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --limit 100 --created >=2026-04-13 -j DROP ache/go/1.25.8/xtest@example.com (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --limit 100 --created >=2026-02-12 (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/1/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/1/artifacts --jq .artifacts[].name 1745049/b163/vet.cfg ache/go/1.25.8/x64/pkg/tool/linu-importcfg **/*.json --ignore-path ../../../.pretti-u ache/go/1.25.8/xorigin (http block)
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 LsRemoteWithRealGitmain_branch2274564190/001' ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet **/*.json --ignore-path ../../../.pretti/tmp/gh-aw-test-runs/20260513-065706-16203/test-2095480832 ache/go/1.25.8/xstatus -c _test.go (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/1/artifacts --jq .artifacts[].name LsRemoteWithRealGitbranch_with_hyphen1938333664/001' ules/.bin/sh /ref/tags/v9 --jq sv /opt/hostedtoolcremote1 ache�� 999 -buildtags on rkflow/js/**/*.jgh -ifaceassert erignore /opt/hostedtoolc--jq (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12345/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12345/artifacts --jq .artifacts[].name 1745049/b146/vet.cfg ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12345/artifacts --jq .artifacts[].name LsRemoteWithRealGitcustom_branch982331313/001' tions/node_modules/.bin/node -v l /usr/bin/infocmpremove /opt/hostedtoolcmyorg 1/x6�� 893719193/.github/workflows -buildtags 64/pkg/tool/linux_amd64/vet son -ifaceassert -nilfunc 64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/1234567890
    • Triggering command: /usr/bin/gh gh api repos/{owner}/{repo}/actions/runs/1234567890 --jq {databaseId: .id, number: .run_number, url: .html_url, status: .status, conclusion: .conclusion, workflowName: .name, workflowPath: .path, createdAt: .created_at, startedAt: .run_started_at, updatedAt: .updated_at, event: .event, headBranch: .head_branch, get rk x_amd64/vet commit.gpgsign (http block)
    • Triggering command: /usr/bin/gh gh api repos/{owner}/{repo}/actions/runs/1234567890 --jq {databaseId: .id, number: .run_number, url: .html_url, status: .status, conclusion: .conclusion, workflowName: .name, workflowPath: .path, createdAt: .created_at, startedAt: .run_started_at, updatedAt: .updated_at, event: .event, headBranch: .head_branch, h ../../../.pret.prettierignore --package-lock-o--log-level=error 64/pkg/tool/linux_amd64/vet --noprofile cfg 1/x64/bin/node 64/pkg/tool/linu-parallel=4 main�� w/js/**/*.json' -run=^Test --auto 64/pkg/tool/linu-short --detach (http block)
    • Triggering command: /usr/bin/gh gh api repos/{owner}/{repo}/actions/runs/1234567890 --jq {databaseId: .id, number: .run_number, url: .html_url, status: .status, conclusion: .conclusion, workflowName: .name, workflowPath: .path, createdAt: .created_at, startedAt: .run_started_at, updatedAt: .updated_at, event: .event, headBranch: .head_branch, 1350745931/001' 1350745931/001' sv --noprofile /opt/hostedtoolc-atomic /home/REDACTED/.lo-bool git comm�� submodules | hea-errorsas Initial (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12346/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12346/artifacts --jq .artifacts[].name 1745049/b087/vet.cfg x86_64/bash (http block)
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12346/artifacts --jq .artifacts[].name --jq de_modules/.bin/node /ref/tags/v9 ^remote\..*\.gh-init ode-gyp-bin/node /opt/hostedtoolcache/go/1.25.8/xTest User 1/x6�� 2803924324/.github/workflows -buildtags 64/pkg/tool/linux_amd64/vet son -ifaceassert ode-gyp-bin/sh 64/pkg/tool/linuremote.origin.url (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/2/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/2/artifacts --jq .artifacts[].name **/*.cjs defd6053f4638c649e7cdcb7a230770c2dadea573eb4fd3619eca74f95bd41ce-d **/*.json --ignore-path ../../../.prettiuser.name ache/go/1.25.8/xTest User -c c_test.go (http block)
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 1745049/b181/vet.cfg x_amd64/compile **/*.json --ignore-path ../../../.pretti/tmp/gh-aw-test-runs/20260513-065706-16203/test-2095480832 x_amd64/compile -c "prettier" --wri@{u} (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/2/artifacts --jq .artifacts[].name node bin/sh /home/REDACTED/worgit -tests ode-gyp-bin/sh bash ache�� 1900627738/.github/workflows /opt/hostedtoolc--jq 1/x64/bin/node rkflow/js/**/*.jgit url erignore /opt/hostedtoolcremote.origin.url (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/3/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/3/artifacts --jq .artifacts[].name 1745049/b081/vet.cfg cfg **/*.json --ignore-path ../../../.prettierignore yP/MTK9fk8zVRHRis0Hc7kg/4OQC8i2_config -c 1899130981/.github/workflows (http block)
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 itmaster_branch3-nolocalimports de/node/bin/bash-importcfg --log-target auto (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/3/artifacts --jq .artifacts[].name --jq ache/node/24.14.1/x64/bin/node /ref/tags/v9 erignore sv bash ache�� *.json' '!../../../pkg/workflow/js/**/*.json' ---errorsas /opt/hostedtoolcache/node/24.14.1/x64/bin/node on rkflow/js/**/*.jgit K_njAW_xHljw erignore /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linugit-upload-pack '/tmp/TestParseDefaultBranchFromLsRemoteWithRealGitmaster_branch-ifaceassert (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/4/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/4/artifacts --jq .artifacts[].name 1745049/b080/vet.cfg 64/bin/go **/*.json --ignore-path ../../../.prettiuser.email ache/go/1.25.8/xtest@example.com 1745�� "prettier" --write '../../../**/*.json' '!../../../pkg/workflow/js/**/*.json' --./pkg/workflow/ ache/go/1.25.8/x64/src/testing/internal/testdeps/deps.go 64/pkg/tool/linux_amd64/link rror (http block)
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 1745049/b182/vet.cfg 1/x64/bin/bash **/*.json --ignore-path ../../../.prettiHEAD ache/go/1.25.8/x.github/workflows/test.md -c 68/001/test-empty-frontmatter.md (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/4/artifacts --jq .artifacts[].name node ache/go/1.25.8/x64/bin/node /home/REDACTED/worgit -goversion /usr/bin/unpigz bash ache�� 1900627738/.github/workflows /usr/bin/unpigz 1/x64/bin/node rkflow/js/**/*.jgit 64/pkg/tool/linuconfig erignore /opt/hostedtoolcremote.origin.url (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/5/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/5/artifacts --jq .artifacts[].name 1745049/b077/vet.cfg 64/pkg/tool/linux_amd64/compile **/*.json --ignore-path ../../../.pretti/tmp/gh-aw-test-runs/20260513-065706-16203/test-2095480832 64/pkg/tool/linustatus -c 3070765540/.gith.github/workflows/test.md -pack 64/pkg/tool/linux_amd64/vet rror (http block)
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 LsRemoteWithRealGitmaster_branch3421892582/001' x_amd64/compile +30 -delete run-script/lib/node-gyp-bin/node/tmp/TestGuardPolicyTrustedUsersCompiledOutput2685161704/001 x_amd64/compile -c "prettier" --write '../../../**/remote.origin.url (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/5/artifacts --jq .artifacts[].name infocmp 1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin/sh xterm-color -dwarf=false erignore bash --no�� *.json' '!../../../pkg/workflow/js/**/*.json' ---errorsas /opt/hostedtoolc--jq /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linu-nilfunc WorkflowFiles_Sigit /tmp/go-build755init /usr/bin/git /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linu-tests (http block)
  • https://api.github.com/repos/github/gh-aw/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path -c=4 -nolocalimports -importcfg /tmp/go-build755359082/b435/importcfg -pack /home/REDACTED/work/gh-aw/gh-aw/pkg/logger/example_test.go /home/REDACTED/work/gh-aw/gh-aw/pkg/logger/spec_test.go 1/x6�� rd user.email x_amd64/vet son (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 (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 (http block)
  • https://api.github.com/repos/github/gh-aw/contents/.github/workflows/shared/reporting.md
    • Triggering command: /tmp/go-build755359082/b405/cli.test /tmp/go-build755359082/b405/cli.test -test.testlogfile=/tmp/go-build755359082/b405/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true (http block)
    • Triggering command: /tmp/go-build3158180653/b405/cli.test /tmp/go-build3158180653/b405/cli.test -test.testlogfile=/tmp/go-build3158180653/b405/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true -bool -buildtags /opt/hostedtoolc"prettier" --write '**/*.cjs' '**/*.ts' '**/*.json' --ignore-path ../../../.pret.prettierignore infocmp -1 ithub-script/git/ref/tags/v9 bash _modules/.bin/node runs/20260513-06sh -tests cfg gh (http block)
    • Triggering command: /tmp/go-build3931441293/b405/cli.test /tmp/go-build3931441293/b405/cli.test -test.testlogfile=/tmp/go-build3931441293/b405/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true "prettier" --wrish -tests es/.bin/sh infocmp -1 ithub-script/git/ref/tags/v9 node modules/@npmcli/run-script/lib/node-gyp-bin/node 5947-26661/test-sh --write ache/node/24.14.npx prettier --write '../../../**/*.json' '!../../../pkg/workflow/js/**/*.json' --ignore-path infocmp (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v0.47.4
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v0.47.4 --jq [.object.sha, .object.type] | @tsv runs/20260513-065706-16203/test-1869264328 remote /usr/lib/git-core/git url --local x_amd64/vet /usr/lib/git-core/git pack�� --all-progress-implied s/12346/artifacts /usr/bin/git --thin --delta-base-off-c -q git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v0.47.4 --jq [.object.sha, .object.type] | @tsv --write ../../../**/*.json /usr/bin/git --ignore-path ../../../.pretti\n /usr/bin/infocmp: git -C /tmp/gh-aw-test-runs/20260513-065947-26661/test-add-source-path-572014276/.github/workflows config /usr/bin/git remote.origin.ursh 64/pkg/tool/linu-c bject.type] | @techo 'not found' >&2; exit 1 /usr/bin/git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v0.47.4 --jq [.object.sha, .object.type] | @tsv tructions-test-778886809/.github/workflows infocmp ache/node/24.14.1/x64/bin/node url 99utIGwmeLqF0bSj\n /usr/bin/infocmp: ache/node/24.14.1/x64/bin/node 1911�� 'value' |� secrets.TOKEN s/12346/artifacts /usr/bin/gh ithub-script/gitsh sh bject.type] | @techo 'not found' >&2; exit 1 gh (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, .object.type] | @tsv se 1745049/b361/vet.cfg 64/pkg/tool/linux_amd64/compile --ignore-path ../../../.prettiremote ndor/bin/git 64/pkg/tool/linux_amd64/compile -uns�� _.a /tmp/go-build4261745049/b035/vet.cfg /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linu-importcfg (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq [.object.sha, .object.type] | @tsv re --log-level=error --jq 64/pkg/tool/linux_amd64/vet --noprofile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq [.object.sha, .object.type] | @tsv 9559/001/stability-test.md infocmp es/.bin/sh /ref/tags/v9 gh erignore git tion�� rity2795028037/001 git son ignore remote.origin.urremote (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.2.3
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv origin .cfg 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv /repos/actions/g--thin --jq (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv ithub-script/git/ref/tags/v9 sh bject.type] | @tsv k/gh-aw/gh-aw/.gnode extractSafeOutp/tmp/js-hash-test-1200884428/test-hash.js ac42fe3c infocmp -1 lGitcustom_branch1350745931/001' lGitcustom_branch1350745931/001' es/.bin/node 49840870/001 -importcfg` (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v2.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq [.object.sha, .object.type] | @tsv origin .cfg 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq [.object.sha, .object.type] | @tsv origin .cfg 64/pkg/tool/linu-importcfg (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq [.object.sha, .object.type] | @tsv -c=4 -nolocalimports -importcfg /tmp/go-build755359082/b470/importcfg -pack /home/REDACTED/work/gh-aw/gh-aw/pkg/types/spec_test.go 64/pkg/tool/linuconfig --no�� rite '../../../*remote.upstream.url (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v3.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq [.object.sha, .object.type] | @tsv origin .cfg 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq [.object.sha, .object.type] | @tsv /repos/actions/github-script/git/ref/tags/v9 --jq bin/node ithub-script/gitinfocmp -trimpath bject.type] | @txterm-color gh tion�� /repos/actions/github-script/git--ignore-path --jq bin/sh git-upload-pack infocmp git-upload-pack -1 clusion,workflowxterm-color gh (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq [.object.sha, .object.type] | @tsv ac42fe3c:pkg/workflow/safe_outpu**/*.ts npx ules/.bin/node /ref/tags/v9 ../../../**/*.jsapi sv infocmp 1/x6�� : .head_branch, Gitcustom_branch1350745931/001' n-dir/node -bool -buildtags git infocmp (http block)
  • https://api.github.com/repos/github/gh-aw/issues/17
    • Triggering command: /usr/bin/gh gh api repos/github/gh-aw/issues/17 -extld=gcc /tmp/go-build755359082/b441/_pkg_.a get --local x_amd64/vet commit.gpgsign (http block)
    • Triggering command: /usr/bin/gh gh api repos/github/gh-aw/issues/17 /opt/hostedtoolcache/node/24.14.1/x64/bin/npm inst�� h ../../../.prettierignore iptables 64/pkg/tool/linux_amd64/vet FieldEnforcementnode security bject.type] | @t--write 64/pkg/tool/linu../../../**/*.json /tmp�� w/js/**/*.json' --ignore-path 359082/b402/impo../../../.prettierignore 64/pkg/tool/linux_amd64/vet 17 conntrack "warnings":[]}] 64/pkg/tool/linutest@example.com (http block)
    • Triggering command: /usr/bin/gh gh api repos/github/gh-aw/issues/17 infocmp -1 h ../../../.pret.prettierignore ache/go/1.25.8/x--log-level=error bject.type] | @tsv --noprofile bash ache/node/24.14.-x sed ules�� submodules | hea- sh n-dir/git sistency_WithImp/usr/lib/git-core/git gh ache/node/24.14.run infocmp (http block)
  • https://api.github.com/repos/google-github-actions/auth/git/ref/tags/v2
    • Triggering command: /usr/bin/gh gh api /repos/google-github-actions/auth/git/ref/tags/v2 --jq [.object.sha, .object.type] | @tsv /tmp/go-build755359082/b400/_pkg_.a -trimpath ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet -p main -lang=go1.25 ache/go/1.25.8/x--package-lock-only (http block)
    • Triggering command: /usr/bin/gh gh api /repos/google-github-actions/auth/git/ref/tags/v2 --jq [.object.sha, .object.type] | @tsv runs/20260513-065947-26661/test-1781964960/.github/workflows ker/docker-init (http block)
    • Triggering command: /usr/bin/gh gh api /repos/google-github-actions/auth/git/ref/tags/v2 --jq [.object.sha, .object.type] | @tsv runs/20260513-070302-35972/test-353677217/.github/workflows infocmp /usr/bin/git rror /bin/sh /usr/bin/infocmpinstall git conf�� runs/20260513-070302-35972/test-1145664247 test@example.com kflows/test-expires.lock.yml js/**/*.json' --head node /usr/bin/infocmp/tmp/gh-aw/aw-master.patch git-receive-pack (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, .object.type] | @tsv --write ../../../**/*.json bash --ignore-path ../../../.pretticonfig (http block)
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq [.object.sha, .object.type] | @tsv re --log-level=error bash 64/pkg/tool/linux_amd64/vet 0wv0fZFWo (http block)
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq [.object.sha, .object.type] | @tsv --json number --jq .[0].number --jq erignore git add te '../../../**/*.json' '!../../../pkg/workflow/js/**/*.json' --ignore-path ../../../.prettieriginfocmp docker 1/x64/bin/node ignore gh e/git gcc (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 .prettierignore --log-level=erroremote (http block)
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion /ref/tags/v9 config sv 64/pkg/tool/linutest@example.com --no�� --noprofile git ache/node/24.14.1/x64/bin/node nore upstream sv node (http block)
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion /tmp/TestGuardPogit config mple.com/org/repo.git git 8d51�� 01/main.md --others 64/pkg/tool/linux_amd64/asm /ref/tags/v9 64/pkg/tool/linuconfig sv 64/pkg/tool/linuremote.origin.url (http block)
  • https://api.github.com/repos/org/repo/pulls/1
    • Triggering command: /usr/bin/gh gh api repos/org/repo/pulls/1 -extld=gcc /tmp/go-build755359082/b433/_pkg_.a get --local x_amd64/vet gpg.program (http block)
    • Triggering command: /usr/bin/gh gh api repos/org/repo/pulls/1 infocmp -1 h ../../../.prettierignore /tmp/go-build395--jq modules/@npmcli/run-script/lib/node-gyp-bin/sh ock.json pkg/wornode (http block)
    • Triggering command: /usr/bin/gh gh api repos/org/repo/pulls/1 gh api h ../../../.pret.prettierignore --jq 1/x64/bin/sh st-3959547391/.ggo /usr/libexec/doctest /home/REDACTED/wor-v du ules�� w/js/**/*.json' -run=^Test sh (http block)
  • https://api.github.com/repos/owner/repo/actions/secrets
    • Triggering command: /usr/bin/gh gh api /repos/owner/repo/actions/secrets --jq .secrets[].name */*.ts' '**/*.json' --ignore-path ../../../.prettierignore --local x_amd64/vet committer.email (http block)
    • Triggering command: /usr/bin/gh gh api /repos/owner/repo/actions/secrets --jq .secrets[].name ath ../../../.pr**/*.json /tmp/go-build339--ignore-path modules/@npmcli/run-script/lib/node-gyp-bin/node -test.paniconexish -test.timeout=10-c 359082/b284/vet."prettier" --write '../../../**/*.json' '!../../../pkg/workflow/js/**/*.json' --ignore-path ../../../.prettierignore /usr/lib/git-core/git er th .prettierignore --log-level=error --auto 64/pkg/tool/linux_amd64/vet --detach resolved$ /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linu--noprofile 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/owner/repo/actions/secrets --jq .secrets[].name ath ../../../.pr**/*.json sh es/.bin/node 550985197 on sv infocmp er ithub-script/git/ref/tags/v9 sh sh 5947-26661/test-git /usr/bin/gh xpires.lock.yml infocmp (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 x_amd64/vet gpg.program (http block)
    • Triggering command: /usr/bin/gh gh workflow list --repo owner/repo --json name,path,state 64/pkg/tool/linux_amd64/vet rror (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo sv pts.test (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 -c=4 -nolocalimports -importcfg /tmp/go-build755359082/b432/importcfg -pack /home/REDACTED/work/gh-aw/gh-aw/pkg/logger/doc.go /home/REDACTED/work/gh-aw/gh-aw/pkg/logger/logger.go 1/x6�� ify@v1.11.1/assert/assertion_com-errorsas ify@v1.11.1/assert/assertion_for-ifaceassert x_amd64/cgo son (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name json' --ignore-p--ignore-path --jq sv /ref/tags/v9.0.0sh (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name d --jq modules/@npmcli/run-script/lib/node-gyp-bin/node CommaSeparatedCosh on 1/x64/bin/node gh er /ref/tags/v9 --jq 1/x64/bin/git e: ${{ secrets.Tgh infocmp /usr/sbin/sh gh (http block)
  • https://api.github.com/repos/test/repo
    • Triggering command: /usr/bin/gh gh api /repos/test/repo --jq .default_branch --write ../../../**/*.json x_amd64/vet tion_pins.json..git ../../../.prettiremote (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test/repo --jq .default_branch vaScript3957699707/001/test-empty-frontmatter.md--thin -buildtags /home/REDACTED/.local/bin/sh ./../.prettieriginfocmp -ifaceassert -nilfunc sh -c te '**/*.cjs' '**/*.ts' '**/*.json' --ignore-path ../../../.prettierignore -tests ache/node/24.14.1/x64/bin/node ithub-script/gitinfocmp remote.origin.ur-1 bject.type] | @txterm-color node (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test/repo --jq .default_branch .js' --ignore-path .prettierignore --log-level=error gh tions/node_modules/.bin/node /ref/tags/v9 --jq sv git tion�� mpiledOutput4160984027/001 origin son ignore gh erignore make (http block)

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

Copilot AI and others added 2 commits May 13, 2026 07:00
…en safeOutputExtractHandlers

The 637-line `extractSafeOutputsConfig` function contained 45 near-identical
parse-and-assign blocks. This replaces them with a registry table of
`safeOutputExtractHandler` entries, each holding a single `run` function.

The main function body now calls the 45 handlers via a 3-line loop:

  for _, h := range safeOutputExtractHandlers {
      h.run(c, config, outputMap)
  }

Shape A handlers (41 entries) simply parse and assign when non-nil.
Shape B handlers (4 entries: missing-tool, missing-data, noop,
report-incomplete) additionally apply a default when the key is absent.

Using a `run func` (not `parse any + assign`) avoids the Go typed-nil-in-interface
pitfall where a nil *T returned through `any` compares non-nil.

Scalar/inline settings (staged, env, github-token, max-patch-size,
max-patch-files, allowed-domains, runs-on, messages, steps, etc.) remain
inline — they are not handler-shaped.

No behaviour change: all existing tests pass.

Agent-Logs-Url: https://github.com/github/gh-aw/sessions/3e0cf1f0-67d7-4946-b6e7-c6d9771ca50f

Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor extractSafeOutputsConfig to reduce code duplication refactor: replace 45 repeated parse-and-assign blocks in extractSafeOutputsConfig with table-driven registry May 13, 2026
Copilot AI requested a review from gh-aw-bot May 13, 2026 07:05
@github-actions github-actions Bot mentioned this pull request May 13, 2026
@pelikhan pelikhan closed this May 13, 2026
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.

Refactor: 637-line extractSafeOutputsConfig has 45 near-identical parse-and-assign blocks (table-driven candidate)

3 participants