Fix Copilot SDK headless auth/driver path and tool-permission denials in daily workflows#37322
Merged
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix copilot-sdk headless mode breaking workflows
Fix Copilot SDK headless auth/driver path and tool-permission denials in daily workflows
Jun 6, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes recurring failures in scheduled workflows that run with engine.copilot-sdk: true by aligning them to the supported headless SDK driver path and reducing tool-permission denials, plus a small SDK permission normalization and regression test.
Changes:
- Removed the Ruby sample Copilot SDK driver override so the updater workflow uses the default Node-based headless driver path.
- Relaxed the syntax-quality workflow shell permissions (
bash: true) so the compiled workflow uses--allow-all-toolsand avoids brittle per-command matching. - Updated the SDK permission handler to approve
readrequests whenshellis explicitly allowed, and added a focused regression test.
Show a summary per file
| File | Description |
|---|---|
pkg/workflow/data/action_pins.json |
Updates embedded action pin entries (not described in PR text). |
pkg/actionpins/data/action_pins.json |
Mirrors the same embedded action pin updates for the actionpins package. |
actions/setup/js/copilot_sdk_driver.cjs |
Permits read when shell is allowlisted in the SDK permission handler. |
actions/setup/js/copilot_sdk_driver.test.cjs |
Adds regression coverage for read approval when allowedTools: ["shell"]. |
.github/workflows/daily-workflow-updater.md |
Removes the Ruby SDK driver override from the workflow definition. |
.github/workflows/daily-workflow-updater.lock.yml |
Compiled workflow now invokes the Node SDK driver rather than the Ruby sample. |
.github/workflows/daily-syntax-error-quality.md |
Switches from enumerated bash commands to bash: true. |
.github/workflows/daily-syntax-error-quality.lock.yml |
Compiled workflow switches to --allow-all-tools instead of per-command --allow-tool shell(...) entries. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 8/8 changed files
- Comments generated: 2
Comment on lines
+176
to
180
| "github/gh-aw-actions/setup@v0.76.1": { | ||
| "repo": "github/gh-aw-actions/setup", | ||
| "version": "v0.78.2", | ||
| "sha": "268bf92726cb8153337c07166f382ee46e4fd897" | ||
| }, | ||
| "github/gh-aw/actions/setup-cli@v0.78.2": { | ||
| "repo": "github/gh-aw/actions/setup-cli", | ||
| "version": "v0.78.2", | ||
| "sha": "a7d4043a8224182262356a32931099b76fd332eb" | ||
| "version": "v0.76.1", | ||
| "sha": "46d564922b082d0db93244972e8005ea6904ee5f" | ||
| }, |
Comment on lines
+176
to
180
| "github/gh-aw-actions/setup@v0.76.1": { | ||
| "repo": "github/gh-aw-actions/setup", | ||
| "version": "v0.78.2", | ||
| "sha": "268bf92726cb8153337c07166f382ee46e4fd897" | ||
| }, | ||
| "github/gh-aw/actions/setup-cli@v0.78.2": { | ||
| "repo": "github/gh-aw/actions/setup-cli", | ||
| "version": "v0.78.2", | ||
| "sha": "a7d4043a8224182262356a32931099b76fd332eb" | ||
| "version": "v0.76.1", | ||
| "sha": "46d564922b082d0db93244972e8005ea6904ee5f" | ||
| }, |
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.
Two scheduled workflows using
engine.copilot-sdk: truewere failing consistently for different reasons: updater runs were routed through a Ruby sample driver (missing runtime + auth/session failure), and syntax-quality runs were blocked by strict SDK tool matching (read+ compoundshell(...)denials).This PR aligns both workflows with the supported headless path and removes brittle permission mismatches.
Daily Workflow Updater: remove Ruby SDK driver override
engine.copilot-sdk-driver: .github/drivers/copilot_sdk_driver_sample_ruby.rbfromdaily-workflow-updater.md.Daily Syntax Error Quality: remove brittle per-command shell allowlist
tools.bashfrom enumerated commands tobash: trueindaily-syntax-error-quality.md.--allow-all-toolsfor SDK headless mode, preventing repeated denials on compound shell command forms.SDK permission normalization for read requests
copilot_sdk_driver.cjspermission handler to allowreadwhenshellis explicitly allowed.Targeted regression coverage
copilot_sdk_driver.test.cjsassertingreadis approved whenallowedTools: ["shell"].