fix: allow community submission archive validation - #4622
Conversation
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The bundle workflow unnecessarily allows codeload access despite accepting only release assets.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced
Findings: 2
Open (2)
What changed in this PR
Enables direct archive validation in community submission workflows while constraining downloads to HTTPS GitHub hosts.
Changes:
- Allows
curland GitHub archive redirect hosts. - Adds timeout, status verification, and non-execution safeguards.
- Regenerates workflow locks and adds regression tests.
| File | Description |
|---|---|
.github/workflows/add-community-extension.md |
Enables guarded archive downloads. |
.github/workflows/add-community-extension.lock.yml |
Regenerates the extension workflow. |
.github/workflows/add-community-preset.md |
Enables guarded archive downloads. |
.github/workflows/add-community-preset.lock.yml |
Regenerates the preset workflow. |
.github/workflows/add-community-bundle.md |
Enables release-asset downloads. |
.github/workflows/add-community-bundle.lock.yml |
Regenerates the bundle workflow. |
tests/test_github_workflows.py |
Verifies permissions, hosts, and download safeguards. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Addressed the review in commit
Posted on behalf of @mnriem by GitHub Copilot (model: GPT-5.6 Sol). |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Two regression assertions can miss removal of the executable curl permission or redirect-following flag.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced
Findings: 1
Resolved since last review (2)
Permit curl and the GitHub archive/release redirect hosts in all three community submission workflows. Require direct download evidence, preserve existing pinning checks, and cover the source and compiled configuration with regression checks. Closes github#4589 Assisted-by: GitHub Copilot (model: GPT-6 Astra, autonomous) Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Remove codeload.github.com from bundle validation while retaining it for extension and preset tag archives. Model the required redirect hosts per workflow in regression coverage and update the generated bundle lock without compiler drift. Assisted-by: GitHub Copilot (model: GPT-5.6 Sol, autonomous) Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Inspect the non-comment Copilot harness command before asserting the curl tool permission, and require the explicit curl redirect-following flag in archive guidance. Assisted-by: GitHub Copilot (model: GPT-5.6 Sol, autonomous) Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
828822b to
c2e24d8
Compare
|
Rebased the branch onto current
Posted on behalf of @mnriem by GitHub Copilot (model: GPT-5.6 Sol). |
|
Addressed the latest review by correcting the PR testing disclosure. It now records gh-aw v0.88.7, matching the generated lock metadata and regression enforcement, and the current targeted result of No code change was required; the branch head remains Posted on behalf of @mnriem by GitHub Copilot (model: GPT-5.6 Sol). |


Description
Closes #4589.
Run 34898212927 denied the archive
curlcommand because it was absent from the shell tool allowlist. The resolved firewall configuration also omittedcodeload.github.comandrelease-assets.githubusercontent.com, so permitting the command alone would leave the accepted download URLs blocked at their redirect destinations.curland only the required GitHub download hosts alongside the existing default network policy in the extension, preset, and bundle submission workflows, which share the same validation requirements and configuration gap.Testing
uv run specify --helpuv sync && uv run pytestWorkflow-only change; CLI/sample-project checks and the full suite were not run. Targeted validation used this worktree's own virtualenv:
.venv/bin/python -m pytest tests/test_github_workflows.py -q: 37 passed. All three new regression checks failed before the fix.gh aw compile add-community-extension add-community-preset add-community-bundle --strict --no-check-update: all three compiled with zero errors or warnings using v0.88.7, matching their compiler metadata and the version enforced by the workflow regression tests.curltool permission changed; existing action/container pins and policies remain unchanged.codeload.github.com.git diff --checkpassed.The hosted workflow has not been rerun; end-to-end confirmation is needed after merge and a new submission-label trigger.
AI Disclosure
GitHub Copilot (model: GPT-6 Astra), acting on behalf of @mnriem, investigated the run, authored the fix and regression coverage, and performed the local validation autonomously. @mnriem requested the work and authorized the commit and upstream PR; the changes have not been represented as human-authored or line-by-line human-reviewed.