Repository navigation
Update GitHub MCP access-control spec pin and fetch full validation history - #75989
Conversation
Co-authored-by: pelikhan <[email protected]>
Co-authored-by: pelikhan <[email protected]>
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
There was a problem hiding this comment.
Reviewed the changed workflow pin, documentation synchronization, and regression coverage. I found no actionable correctness or regression issues in the changed lines. Static review only; tests were not run per review instructions.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
There was a problem hiding this comment.
🟢 Approval recommended
The reviewed updates cover pin synchronization, complete-history checkout, and regression coverage, while the supplied review status records no remaining active issues.
No open issues 🎉
What changed in this PR
Updates the GitHub MCP access-control specification pin, ensures validation fetches complete Git history, and adds regression coverage for checkout configuration and pin consistency.
Changes:
- Synchronizes the specification pin across CI and both README references.
- Sets
fetch-depth: 0while retainingpersist-credentials: false. - Adds contract tests for checkout history and pin consistency.
- Adds
index-search.mdto the agentic-workflows skill index.
This pull request requires changes.
| File | Summary | Review note |
|---|---|---|
specs/github-mcp-access-control-compliance/README.md |
Updates the pinned specification commit and synchronization guidance. | — |
scripts/workflow-tool-contracts.test.cjs |
Verifies checkout configuration and consistency between CI and documented pins. | Moderate: The checkout assertion is not scoped to the actions/checkout step, so an unrelated step could satisfy the test while the validation checkout regresses to shallow history. |
.github/workflows/ci.yml |
Uses the updated specification pin and fetches complete history for validation. | — |
.github/skills/agentic-workflows/SKILL.md |
Adds index-search.md to the guidance file index. |
— |
Review effort: Lite (auto)
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /tdd and /codebase-design, with no blocking issues. The fetch-depth: 0 change, the pin update, and the new regression test are consistent. I checked the new pin 34f03fba65c7bf34c1c03654b3c03900b7597a39 against the GitHub API, and the new test passes on a clean export of this head. Skills were selected from the diff directly; the triage agent was not invoked.
📋 Key Themes & Highlights
Key Themes
- Test structure: Job slicing and test placement could be more robust (see inline comments).
- Pin sync: CI and README pins match, and the README now documents that both must change together.
Positive Highlights
- ✅
persist-credentials: falseis retained alongsidefetch-depth: 0. - ✅ The regression test covers both checkout depth and pin consistency.
- ✅ The
index-search.mdreference resolves to a tracked file.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~4 AIC · ⌖ ~2 AIC · ⊞ 6.3K
Comment /matt to run again
|
|
||
| test("MCP access-control spec validation uses full history and matching documented pins", () => { | ||
| const workflow = fs.readFileSync(path.join(__dirname, "..", ".github", "workflows", "ci.yml"), "utf8"); | ||
| const job = workflow.split(" validate-mcp-access-control-spec-pin:\n")[1]?.split("\n test-race:")[0]; |
There was a problem hiding this comment.
[/tdd] The job boundary is sliced on the hardcoded test-race: header. An inserted job before test-race would be included in the slice, so the fetch-depth assertion could pass on another job's checkout. Slicing on the next job header is more robust, and I checked that it returns the identical block on this head.
💡 Suggested change
const job = workflow.split(" validate-mcp-access-control-spec-pin:\n")[1]?.split((n/redacted) [a-z][a-z0-9-]*:\n/)[0];@copilot please address this.
There was a problem hiding this comment.
Addressed in 493bddd. The validation job now ends at the next job header, including IDs with underscores or hyphens, and the history/credential assertions are scoped to its checkout step. Added negative regression cases for another step and an inserted job. All 21 focused workflow tests pass.
| assert.equal(handler({ kind: "shell", fullCommandText: command }).kind, expected, command); | ||
| } | ||
|
|
||
| test("MCP access-control spec validation uses full history and matching documented pins", () => { |
There was a problem hiding this comment.
[/codebase-design] This CI-config assertion sits in workflow-tool-contracts.test.cjs, which covers tool permission contracts. scripts/release-workflows.test.cjs already reads and parses .github/workflows/ci.yml, so someone looking for CI pin or checkout checks would look there first. Moving this test next to it keeps related workflow assertions together. This is a placement suggestion, not a blocker.
@copilot please address this.
There was a problem hiding this comment.
Addressed in 493bddd. Moved the spec-pin and checkout regression coverage to scripts/release-workflows.test.cjs alongside the existing CI assertions, reusing its loaded CI source. The focused workflow tests and final validation gate pass.
|
Copilot assignment requested for the following outstanding work:
Once you start work, post this work summary as a PR comment without the leading Copilot mention, including the Sous-chef head, work, and state lines below, to record that the assignment is running. Apply the necessary fixes on this PR's existing branch, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved; stop when only human review or CI remains. Do not merge or trigger CI. Sous-chef requested-head: e41ca00
|
Assignment running.
Sous-chef requested-head: e41ca00 I will validate locally, reply to addressed threads, and stop when only CI or human review remains. I will not merge the PR or trigger CI. |
…p-spec-pin-92e14f20a02aa85a Co-authored-by: gh-aw-bot <[email protected]>
Co-authored-by: gh-aw-bot <[email protected]>
|
🎉 This pull request is included in a new release. Release: |
The spec-pin CI check uses an outdated pin, and shallow checkout history makes
git logreport the checkout boundary rather than the specification’s last-touching commit.34f03fba65c7bf34c1c03654b3c03900b7597a39; document that both must change together.fetch-depth: 0on the validation job’s checkout, retainingpersist-credentials: false.