Skip to content

fix(course-updater): allow scoped GitHub web fetching - #237

Merged
DanWahlin merged 1 commit into
mainfrom
fix-course-updater-web-fetch-url
Oct 5, 2026
Merged

DanWahlin merged 1 commit into
mainfrom
fix-course-updater-web-fetch-url

Conversation

@DanWahlin

@DanWahlin DanWahlin commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Change

Add engine.id: copilot and engine.args: ["--allow-url=https://github.com"] to Course Updater. The web-fetch tool was enabled, but Copilot also requires URL approval. safe-outputs.allowed-domains does not grant fetch permission.

Only .github/workflows/course-updater.md and .github/workflows/course-updater.lock.yml change. The generated lock includes the scoped URL permission and new metadata hashes. The existing tools, prompts, schedule, labels, action pins, firewall, compiler version (v0.68.1), and Copilot CLI version (1.0.21) remain unchanged. No unrestricted permission is added.

Verification

Compiled only Course Updater with the official gh-aw v0.68.1 release binary. Verified its SHA-256 checksum before use. An exact comparison confirmed that only the URL permission and generated metadata changed. Existing action pins were preserved after compilation.

Course Updater run 37281737127 tested commit 4f245e25c8015ceb9e31f86718b2da06095bdc17 on this branch. The run completed with success. All five jobs passed: activation, agent, detection, safe_outputs, and conclusion.

The actual web-fetch call succeeded for https://github.com/github/copilot-cli/blob/main/changelog.md. The agent artifact contains this result in agent-stdio.log, lines 105-106:

Fetching web content https://github.com/github/copilot-cli/blob/main/changelog.md
Contents of https://github.com/github/copilot-cli/blob/main/changelog.md:

The tool returned a Contents of result, not a URL permission denial. This check used the actual tool result, not only the Actions conclusion. Existing restrictions remain in effect; an unrelated git clone request was still denied.

The same scoped permission was verified in github/copilot-app-for-beginners run 37279532734.

Copilot AI balanced review requested due to automatic review settings October 5, 2026 08:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The scoped permission is correctly propagated without unrelated functional changes.

Review effort: Balanced
Findings: None

What changed in this PR

Adds scoped GitHub URL approval so Course Updater’s existing web-fetch tool can access the Copilot CLI changelog.

Changes:

  • Configures the Copilot engine with --allow-url=https://github.com.
  • Regenerates the locked workflow with the scoped permission and updated metadata.
File Description
.github/​workflows/​course-updater.md Adds scoped engine URL approval.
.github/​workflows/​course-updater.lock.yml Propagates the permission into the generated workflow.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@DanWahlin
DanWahlin merged commit d589fdf into main Oct 5, 2026
16 checks passed
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.

2 participants