Skip to content

Add missing pre-agent step to contribution-check workflow#25968

Merged
pelikhan merged 2 commits intomainfrom
copilot/fix-contribution-check-failure
Apr 13, 2026
Merged

Add missing pre-agent step to contribution-check workflow#25968
pelikhan merged 2 commits intomainfrom
copilot/fix-contribution-check-failure

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 13, 2026

The Contribution Check workflow prompt references a pre-agent step that writes pr-filter-results.json, but no such step existed in the frontmatter. The agent would run, fail to find the file, and emit report_incomplete — creating a failure issue every 4 hours.

  • Added steps: section to contribution-check.md frontmatter that fetches open PRs from the target repo (last 24h), caps at 10, and writes the expected JSON to $GITHUB_WORKSPACE/pr-filter-results.json
  • Recompiled lock file
steps:
  - name: Fetch and filter PRs
    env:
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    run: |
      SINCE=$(date -d '24 hours ago' '+%Y-%m-%dT%H:%M:%SZ' 2>/dev/null \
              || date -v-24H '+%Y-%m-%dT%H:%M:%SZ')
      ALL_PRS=$(gh pr list --repo "$TARGET_REPOSITORY" --state open --limit 100 \
        --json number,createdAt \
        --jq "[.[] | select(.createdAt >= \"$SINCE\")]" 2>/dev/null || echo "[]")
      # ... caps at 10, writes pr-filter-results.json

TARGET_REPOSITORY is inherited from the workflow-level env: block already defined in the frontmatter.

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 efaultBranchFromrev-parse 64/pkg/tool/linu--show-toplevel git rev-�� --show-toplevel 64/pkg/tool/linux_amd64/link /usr/bin/git ser.test -trimpath 1/x64/bin/node git (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 -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (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 GOMODCACHE x_amd64/compile /opt/hostedtoolcache/node/24.14.1/x64/bin/node ortcfg .cfg 64/pkg/tool/linu--show-toplevel /opt/hostedtoolcache/node/24.14.1/x64/bin/node /tmp�� Value: ${{ github.actor }} 64/pkg/tool/linu/tmp/go-build3219668819/b114/vet.cfg /usr/bin/infocmp 1583035/b185/_pkgit GO111MODULE 64/pkg/tool/linu--show-toplevel infocmp (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 sistency_InlinedImports6137963/001/inlined-a.md rev-parse /usr/bin/git -json rk x_amd64/compile git -C /tmp/gh-aw-test-runs/20260413-022252-31950/test-99126324/.github/workflows rev-parse /usr/bin/git -json GO111MODULE 64/bin/go git (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 se 9668819/b040/vet.cfg .cfg GOSUMDB GOWORK 64/bin/go ache/go/1.25.8/xrepos/{owner}/{repo}/actions/runs/12345/artifacts (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha -test.paniconexit0 -test.v=true /usr/bin/git -test.timeout=10git -test.run=^Test -test.short=true--show-toplevel git rev-�� --show-toplevel 64/pkg/tool/linux_amd64/vet /usr/bin/git 2509046749/001 GO111MODULE ck git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha --show-toplevel /opt/hostedtoolcache/go/1.25.8/x5 /usr/bin/git runs/20260413-02git -buildtags /opt/hostedtoolc--show-toplevel git rev-�� --show-toplevel /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet /usr/bin/git ithub-script/gitgit -buildtags 1/x64/bin/node 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 --show-toplevel ache/go/1.25.8/x64/pkg/tool/linuorigin /usr/bin/git 69/001/test-froncut 9668819/b067/vet-f1 .cfg git rev-�� --show-toplevel ache/go/1.25.8/x^remote\..*\.gh-resolved$ /usr/bin/git 5875/001/stabiligit -trimpath ache/go/1.25.8/x--show-toplevel 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 -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq .object.sha -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq .object.sha -json 1.5.0/jsonrpc/jsonrpc.go x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE 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 --get remote.upstream.url /usr/bin/git g_.a OkGlq_83D x_amd64/vet git rev-�� --show-toplevel x_amd64/vet /usr/bin/git m/workflows QuPWq4ACQ 64/pkg/tool/linu--show-toplevel git (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 --get remote.origin.url /usr/bin/git ub/workflows l.go x_amd64/vet git rev-�� --show-toplevel x_amd64/vet /usr/bin/git g_.a GO111MODULE 64/pkg/tool/linu--show-toplevel git (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 ithub/workflows/ai-moderator.md -buildtags /usr/lib/git-core/git -errorsas -ifaceassert -nilfunc /usr/lib/git-core/git unpa�� --pack_header=2,3 -q /usr/bin/git -json 6 x_amd64/compile git (http block)
  • https://api.github.com/repos/actions/upload-artifact/git/ref/tags/v7
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v7 --jq .object.sha 2252-31950/test-3012525164/.github/workflows -trimpath ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet -p hash/fnv -lang=go1.25 ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet -o /tmp/go-build3721583035/b206/_pkg_.a -trimpath 1/x64/bin/node -p crypto/internal/rev-parse -lang=go1.25 BElkr5r/gxP2hM99NY1W11n9Mwv0 (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v7 --jq .object.sha RequiresMinIntegrity2627476050/001 9668819/b271/vet.cfg ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet OUTPUT -d 168.63.129.16 ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet -uns�� -unreachable=false /tmp/go-build3219668819/b016/vet.cfg 64/pkg/tool/linux_amd64/link 0 -j ACCEPT 64/pkg/tool/linux_amd64/link (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v7 --jq .object.sha 2252-31950/test-2065449078 -trimpath ache/go/1.25.8/x64/pkg/tool/linux_amd64/link -p crypto/ecdh -lang=go1.25 ache/go/1.25.8/x64/pkg/tool/linux_amd64/link -o 9668819/b412/fileutil.test -trimpath 64/pkg/tool/linux_amd64/compile -p main -lang=go1.25 64/pkg/tool/linux_amd64/compile (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 GOMODCACHE x_amd64/vet /usr/bin/git ub/workflows rotocol/go-sdk@vrev-parse x_amd64/vet git rev-�� --show-toplevel x_amd64/vet /usr/bin/git /workflows DfcRFzBGz 64/pkg/tool/linu--show-toplevel git (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 -aw/git/ref/tags/v2.0.0 -trimpath ache/go/1.25.8/x64/pkg/tool/linux_amd64/link -p main -lang=go1.25 ache/go/1.25.8/x64/pkg/tool/linux_amd64/link pack�� 9668819/b449/typeutil.test --revs 9668819/b449/importcfg.link --thin --delta-base-offrev-parse -q r96T_MkWd-kcE/_kz8wMEZNDzYl9ptOGPo/5GniUk8RBwwF8S8eKncR/xY8IG6Cr96T_MkWd-kcE (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 /tmp/go-build3219668819/b405/_pkg_.a -trimpath ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile -p github.com/githurev-parse -lang=go1.25 ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile -c 9668819/b449/_pkg_.a git-receive-pack '/tmp/TestParseDefaultBranchFromLsRemoteWithRealGitbranch_with_hyphen664110068/rev-parse 9668819/b449=> -c=4 -nolocalimports -importcfg git (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 GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linuTest User env 2065449078 cQ7c/qW3Yktv_0Qvh00yucQ7c 64/pkg/tool/linux_amd64/link GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/link (http block)
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD 1583035/b013/sym-c 64/pkg/tool/linux_amd64/vet env ternal/tools/generate-action-met-s 7Ps3/Xuna8G_bMUX3GMM57Ps3 64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/compile (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 .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet env 1583035/b188/_pkg_.a HJpH/bR5uMPu5Fr3Cy4PJHJpH 64/pkg/tool/linux_amd64/compile GOINSECURE fips140/edwards2config GOMODCACHE 64/pkg/tool/linuTest User (http block)
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet env 1583035/b193/_pkg_.a QuTc/8J1aAAdvjhK6D-KwQuTc ache/go/1.25.8/x64/pkg/tool/linux_amd64/cgo GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/xremote.origin.url (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 .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE 1583035/b078/ GOMODCACHE 64/pkg/tool/linuTest User env ithub/workflows o 64/pkg/tool/linux_amd64/compile GOINSECURE fips140/ed25519 1583035/b078/symuser.email 64/pkg/tool/linutest@example.com (http block)
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE (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 GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE (http block)
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD 1583035/b013/sym/home/REDACTED/work/gh-aw/gh-aw/.github/workflows/approach-validator.md 64/pkg/tool/linux_amd64/vet env 1607620449/.github/workflows oYmy/n_pwg_VDfKQLamLkoYmy .cfg GOINSECURE g/x/net/http2/hpinit GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linu-trimpath (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 .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE fips140/sha256 GOMODCACHE ylQP4Z8/vCNYLdc7D8RXanEmFBss env 2065449078 t2Bi/LbyKJAzlPTfrrG8ct2Bi x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE hlite 1583035/b007/symuser.name 64/pkg/tool/linuTest User env til.go til_test.go ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOINSECURE l GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linuremote (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 GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE fips140/sha512 GOMODCACHE 64/pkg/tool/linux_amd64/vet env 1583035/b203/_pkg_.a ZDcH/WlCyhVRj9mWQyquJZDcH .cfg GOINSECURE fips140/mlkem GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/link (http block)
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 1y8b/MRa4ogkVnm9-nolocalimports 64/pkg/tool/linu-importcfg GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linu/home/REDACTED/work/gh-aw/gh-aw/scripts/lint_error_messages_test.go env 1607620449 V7o_/18xeupG6XnJInX8DV7o_ ger.test GOINSECURE able GOMODCACHE ger.test (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 GO111MODULE 64/pkg/tool/linu-nolocalimports GOINSECURE fips140/sha3 GOMODCACHE 64/pkg/tool/linu/tmp/go-build3219668819/b444/_testmain.go env 1583035/b202/_pkg_.a go .cfg GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linu-importcfg (http block)
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD 1583035/b007/symabis 64/pkg/tool/linux_amd64/vet ache�� ternal/tools/actions-build/main.go GO111MODULE .cfg GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linurev-parse (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-build3219668819/b411/importcfg -pack /home/REDACTED/work/gh-aw/gh-aw/pkg/fileutil/fileutil.go /home/REDACTED/work/gh-aw/gh-aw/pkg/fileutil/tar.go env -json 1.5.0/internal/j-ifaceassert x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (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 json GOMODCACHE x_amd64/vet env " GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (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 1583035/b011/ GOMODCACHE 64/pkg/tool/linux_amd64/vet env -json .cfg aw.test GOINSECURE 1583035/b011/intrev-parse ache/go/1.25.8/x--show-toplevel aw.test (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 --show-toplevel 64/pkg/tool/linuTest User /usr/bin/git til.go til_test.go ache/go/1.25.8/x--show-toplevel git rev-�� --show-toplevel ache/go/1.25.8/x64/pkg/tool/linuremote /usr/bin/git 9668819/b395/_pk/bin/sh FnMM/DTE1YZYN5-L-c x_amd64/vet git (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 edOutput2531886115/001 .cfg x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (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 -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet env flags="-w -s" -o gh-aw.wasm ./cm-errorsas at.go x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (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 -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet env -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq .object.sha -json GO111MODULE x_amd64/link GOINSECURE mcpgodebug GOMODCACHE x_amd64/link env g_.a GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq .object.sha -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet env Gitmain_branch1192612637/001' Gitmain_branch1192612637/001' x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (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 -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_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 1583035/b098/_pkg_.a .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE b/gh-aw/pkg/loggconfig GOMODCACHE 64/pkg/tool/linutest@example.com (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 64/pkg/tool/linux_amd64/vet env 1583035/b256/_pkg_.a DUdE/2oEXO76xEThYfB4YDUdE ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (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/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json 1.5.0/jsonrpc/jsonrpc.go x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json ag.go x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
  • https://api.github.com/repos/owner/repo/contents/file.md
    • Triggering command: /tmp/go-build3219668819/b397/cli.test /tmp/go-build3219668819/b397/cli.test -test.testlogfile=/tmp/go-build3219668819/b397/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (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 -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)

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

Copilot AI linked an issue Apr 13, 2026 that may be closed by this pull request
…ilter-results.json

Agent-Logs-Url: https://github.com/github/gh-aw/sessions/40abc5cf-30d9-4093-b42f-e5b3d4bf463c

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix contribution check workflow failure Add missing pre-agent step to contribution-check workflow Apr 13, 2026
Copilot AI requested a review from pelikhan April 13, 2026 02:39
@pelikhan pelikhan marked this pull request as ready for review April 13, 2026 03:26
Copilot AI review requested due to automatic review settings April 13, 2026 03:26
@pelikhan pelikhan merged commit 14ca90b into main Apr 13, 2026
54 checks passed
@pelikhan pelikhan deleted the copilot/fix-contribution-check-failure branch April 13, 2026 03:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the missing pre-agent “Fetch and filter PRs” step to the Contribution Check agentic workflow so it reliably generates pr-filter-results.json before the orchestrator prompt runs, preventing recurring report_incomplete failures.

Changes:

  • Adds a steps: block to contribution-check.md frontmatter to fetch open PRs from the last 24 hours, cap evaluation to 10 PRs, and write pr-filter-results.json to $GITHUB_WORKSPACE.
  • Regenerates contribution-check.lock.yml to include the new pre-agent step (and associated generated workflow changes).
Show a summary per file
File Description
.github/workflows/contribution-check.md Adds the missing pre-agent PR fetch/filter step and writes the expected JSON file for the orchestrator.
.github/workflows/contribution-check.lock.yml Recompiled lock workflow reflecting the new pre-agent step and updated generated content.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 2

Comment on lines +41 to +42
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Copy link

Copilot AI Apr 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pre-agent step uses only secrets.GITHUB_TOKEN for both GITHUB_TOKEN and GH_TOKEN. If TARGET_REPOSITORY points to a different repo (or requires elevated permissions), this can cause gh pr list to return empty/unauthorized results even though the workflow/other steps may be configured to use GH_AW_GITHUB_MCP_SERVER_TOKEN/GH_AW_GITHUB_TOKEN fallbacks. Consider using the same cascading token expression used elsewhere in this repo for consistency and cross-repo support.

Suggested change
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN || secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN || secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}

Copilot uses AI. Check for mistakes.
Comment on lines +49 to +55
ALL_PRS=$(gh pr list \
--repo "$TARGET_REPOSITORY" \
--state open \
--limit 100 \
--json number,createdAt \
--jq "[.[] | select(.createdAt >= \"$SINCE\")]" \
2>/dev/null || echo "[]")
Copy link

Copilot AI Apr 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gh pr list stderr is redirected to /dev/null and failures are converted to [], which can silently produce a misleading "no PRs" report when the API call actually failed (auth, rate limit, proxy/firewall). Consider preserving/logging the gh exit code and error output (while still writing pr-filter-results.json) so operational failures aren’t masked as empty results.

Suggested change
ALL_PRS=$(gh pr list \
--repo "$TARGET_REPOSITORY" \
--state open \
--limit 100 \
--json number,createdAt \
--jq "[.[] | select(.createdAt >= \"$SINCE\")]" \
2>/dev/null || echo "[]")
GH_PR_LIST_STDERR=$(mktemp)
ALL_PRS=$(gh pr list \
--repo "$TARGET_REPOSITORY" \
--state open \
--limit 100 \
--json number,createdAt \
--jq "[.[] | select(.createdAt >= \"$SINCE\")]" \
2>"$GH_PR_LIST_STDERR")
GH_PR_LIST_EXIT_CODE=$?
if [ "$GH_PR_LIST_EXIT_CODE" -ne 0 ]; then
echo "Warning: gh pr list failed with exit code $GH_PR_LIST_EXIT_CODE; continuing with empty PR list."
if [ -s "$GH_PR_LIST_STDERR" ]; then
echo "gh pr list stderr:"
cat "$GH_PR_LIST_STDERR"
fi
ALL_PRS='[]'
fi
rm -f "$GH_PR_LIST_STDERR"

Copilot uses AI. Check for mistakes.
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.

[aw] Contribution Check failed

3 participants