fix: move community attribution data to /tmp/gh-aw/agent/community-data/#28442
Merged
fix: move community attribution data to /tmp/gh-aw/agent/community-data/#28442
Conversation
…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
Contributor
There was a problem hiding this comment.
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" |
This was referenced Apr 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Daily Community Attribution Updater was calling
missing_databecause the Copilot agent (claude-haiku-4.5) refused to access/tmp/gh-aw/community-data/— thetemp_folder_prompt.mdinstructs 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 outsideagent/.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 sectiondaily-community-attribution.lock.yml— Regenerated viamake recompileThe 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/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)/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)/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/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)/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)/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/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: