Skip to content

fix: move community attribution data to /tmp/gh-aw/agent/community-data/#28442

Merged
pelikhan merged 2 commits intomainfrom
copilot/fix-daily-community-attribution-updater
Apr 25, 2026
Merged

fix: move community attribution data to /tmp/gh-aw/agent/community-data/#28442
pelikhan merged 2 commits intomainfrom
copilot/fix-daily-community-attribution-updater

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 25, 2026

The Daily Community Attribution Updater was calling missing_data because the Copilot agent (claude-haiku-4.5) refused to access /tmp/gh-aw/community-data/ — the temp_folder_prompt.md instructs agents to use /tmp/gh-aw/agent/ and "Do NOT use the root /tmp/ directory directly," which the model over-interpreted as a blanket prohibition on all /tmp/gh-aw/ subdirectories outside agent/.

Changes

  • shared/community-attribution.md — Rename the pre-step data directory and all prompt-text path references from /tmp/gh-aw/community-data//tmp/gh-aw/agent/community-data/
  • daily-community-attribution.md — Same rename across all three pre-step shell scripts and the "Pre-fetched Data" prompt section
  • daily-community-attribution.lock.yml — Regenerated via make recompile

The data now lives under the agent's explicitly designated working directory, eliminating the ambiguity that caused the model to self-restrict access.

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 GOMOD GOMODCACHE 7039052/b412/impGO111MODULE -c k/gh-aw/gh-aw/pkGOINSECURE k/gh-aw/gh-aw/pkGOMOD 64/bin/go GOSUMDB GOWORK 64/bin/go /opt/hostedtoolcGO111MODULE (http block)
    • 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 GOMOD GOMODCACHE 7039052/b432/impGO111MODULE -c k/gh-aw/gh-aw/pkGOINSECURE k/gh-aw/gh-aw/pkGOMOD 64/bin/go GOSUMDB GOWORK 64/bin/go /opt/hostedtoolcGO111MODULE (http block)
    • 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 GOMOD GOMODCACHE 7039052/b428/impGO111MODULE -c k/gh-aw/gh-aw/pkGOINSECURE k/gh-aw/gh-aw/pkGOMOD 64/bin/go GOSUMDB GOWORK 64/bin/go /opt/hostedtoolcGO111MODULE (http block)
  • https://api.github.com/repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq [.object.sha, .object.type] | @tsv GOSUMDB GOWORK 64/bin/go GOINSECURE GOMOD GOMODCACHE 7039052/b388/impGO111MODULE /hom�� che/go-build/41/GOINSECURE **/*.cjs 64/bin/go **/*.json --ignore-path ../../../.pretti-json /opt/hostedtoolcGO111MODULE (http block)
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq [.object.sha, .object.type] | @tsv "prettier" --cheGOINSECURE sh $name) { hasDiscussionsEnabled } } "prettier" --wricp in/dist/ripgrep/install-gh-aw.sh 64/bin/go go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq [.object.sha, .object.type] | @tsv "prettier" --cheGOINSECURE sh 64/bin/go tierignore (http block)
  • https://api.github.com/repos/github/gh-aw
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw --jq .default_branch -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } GOINSECURE GOMOD GOMODCACHE go (http block)

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

…gent access restrictions

Agent-Logs-Url: https://github.com/github/gh-aw/sessions/b6b97b5b-1813-4737-9d2b-27bb9c844ac8

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issue with daily community attribution updater missing data fix: move community attribution data to /tmp/gh-aw/agent/community-data/ Apr 25, 2026
Copilot AI requested a review from pelikhan April 25, 2026 12:12
@pelikhan pelikhan marked this pull request as ready for review April 25, 2026 12:13
Copilot AI review requested due to automatic review settings April 25, 2026 12:13
@pelikhan pelikhan merged commit 07a0ca6 into main Apr 25, 2026
19 checks passed
@pelikhan pelikhan deleted the copilot/fix-daily-community-attribution-updater branch April 25, 2026 12:13
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

Moves the community attribution “pre-fetched data” directory under the agent-designated temp workspace to avoid agents refusing access due to /tmp path constraints.

Changes:

  • Update community attribution fetch step + prompt docs to use /tmp/gh-aw/agent/community-data/.
  • Update the daily community attribution workflow scripts/prompts to read/write the new directory.
  • Regenerate the daily (and release) lock workflows to reflect the updated shared workflow content.
Show a summary per file
File Description
.github/workflows/shared/community-attribution.md Switches fetched community attribution artifacts and prompt references to /tmp/gh-aw/agent/community-data/.
.github/workflows/daily-community-attribution.md Updates all scripts and “Pre-fetched Data” docs to use the new community data directory.
.github/workflows/daily-community-attribution.lock.yml Regenerated lock file capturing the new paths in embedded scripts.
.github/workflows/release.lock.yml Regenerated lock file; community fetch step now writes to the new directory.

Copilot's findings

Tip

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

  • Files reviewed: 4/4 changed files
  • Comments generated: 1

GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Fetch community-labeled issues
run: "mkdir -p /tmp/gh-aw/community-data\n\n# The \"community\" label is the **primary attribution signal**: a maintainer\n# explicitly tagged the issue as community-authored, making it a strong and\n# intentional marker that does not rely on free-text heuristics.\necho \"Fetching issues with 'community' label (primary attribution signal)...\"\nif ! gh issue list \\\n --label \"community\" \\\n --state all \\\n --limit 500 \\\n --json number,title,author,labels,closedAt,createdAt,url,stateReason \\\n > /tmp/gh-aw/community-data/community_issues.json; then\n echo \"[]\" > /tmp/gh-aw/community-data/community_issues.json\nfi\n\nCOMMUNITY_COUNT=$(jq length \"/tmp/gh-aw/community-data/community_issues.json\")\necho \"✓ Fetched $COMMUNITY_COUNT community-labeled issues\"\necho \" Data: /tmp/gh-aw/community-data/community_issues.json\"\n"
run: "mkdir -p /tmp/gh-aw/agent/community-data\n\n# The \"community\" label is the **primary attribution signal**: a maintainer\n# explicitly tagged the issue as community-authored, making it a strong and\n# intentional marker that does not rely on free-text heuristics.\necho \"Fetching issues with 'community' label (primary attribution signal)...\"\nif ! gh issue list \\\n --label \"community\" \\\n --state all \\\n --limit 500 \\\n --json number,title,author,labels,closedAt,createdAt,url,stateReason \\\n > /tmp/gh-aw/agent/community-data/community_issues.json; then\n echo \"[]\" > /tmp/gh-aw/agent/community-data/community_issues.json\nfi\n\nCOMMUNITY_COUNT=$(jq length \"/tmp/gh-aw/agent/community-data/community_issues.json\")\necho \"✓ Fetched $COMMUNITY_COUNT community-labeled issues\"\necho \" Data: /tmp/gh-aw/agent/community-data/community_issues.json\"\n"
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] Daily Community Attribution Updater failed

3 participants