Repository navigation
fix: let model source maintenance publish unattended - #11924
Merged
Merged
Conversation
Run 44968178263 prepared a validated proposal but lost it when a chained commit command was denied: `git status --short` and `git --no-pager log`/`diff` segments did not match the bash allowlist, and unattended runs deny unmatched segments. Allow `git status:*` and `git log:*`, and instruct the agent to run each publishing step as a separate plain git command without global options, retrying in the allowlisted form if denied. Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the workflow permission and publishing-guidance updates.
No open issues 🎉
What changed in this PR
This PR updates AWF’s model source maintenance workflow so unattended runs can publish validated changes without being blocked by Git command allowlist mismatches.
Changes:
- Allows argument-bearing
git statusandgit logcommands. - Instructs the agent to publish using separate plain Git commands and retry denied commands in allowlisted form.
- Regenerates the workflow lock and extends regression assertions for the permissions and publishing guidance.
| File | Description |
|---|---|
scripts/ci/model-api-mapping-updater-workflow.test.ts |
Adds assertions for Git permissions and publishing guidance. |
.github/workflows/model-api-mapping-updater.md |
Expands the allowlist and clarifies unattended publishing steps. |
.github/workflows/model-api-mapping-updater.lock.yml |
Updates generated metadata and runtime tool permissions. |
Review effort: Balanced (adaptive)
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.
Problem
Run 44968178263 (Model source maintenance) failed in
conclusionwithreport_incomplete. The agent had a validated proposal (OpenRouter refresh + Decisions facts; required tests passed), but its single chained publish command was denied:Every segment must match the allowlist;
git --no-pager …andgit status --short(only baregit statuswas allowed) did not, and unattended runs deny unmatched segments (denied-no-approval-rule-and-could-not-request-from-user). The agent then declined to retry, so no PR was created.Fix
git status:*andgit log:*intools.bash.--no-pager,-c), no chaining/piping, and retry in allowlisted form if denied instead of abandoning publication.--allow-toolentries.Validation
npx jest scripts/ci/model-api-mapping-updater-workflow.test.ts scripts/model-information/maintenance-command.test.ts scripts/ci/apply-general-workflow-patches.test.ts— 80 passed.