Skip to content

fix(repair): read checkout v7 state credentials - #701

Merged
hxy91819 merged 1 commit into
mainfrom
feature/checkout-v7-state-credentials
Jul 19, 2026
Merged

hxy91819 merged 1 commit into
mainfrom
feature/checkout-v7-state-credentials

Conversation

@hxy91819

Copy link
Copy Markdown
Member

Summary

  • follow actions/checkout v7 repository-local credential includes when reading the state token
  • retain local config scope so unrelated user or system credentials remain excluded
  • reproduce the checkout v7 includeIf layout in the immutable server-merge E2E

Root cause

The immutable ledger server-merge fallback queried only entries stored directly in .git/config. actions/checkout v7 stores the HTTP authorization header in a separate credentials config and selects it with a repository-local includeIf.gitdir, so the production fallback exited before calling the GitHub merge API.

Verification

  • failing-first focused E2E reproduced git config ... exited 1 on current main
  • focused immutable server-merge E2E passes after the fix
  • full test/repair/git-publish.test.ts passes
  • pnpm run check
  • local autoreview: 0 findings
  • gitleaks protect --staged --redact --no-banner: 0 leaks

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal priority bug or improvement with limited blast radius. labels Jul 19, 2026
@clawsweeper

clawsweeper Bot commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 19, 2026, 7:43 AM ET / 11:43 UTC.

Summary
The PR adds --includes to repository-local state-token credential lookup and changes the immutable server-merge test fixture to place the authorization header in an includeIf.gitdir credentials file.

Reproducibility: yes. at source level: the pre-change command reads only entries directly visible in local config, while the supplied checkout v7 fixture places the header behind a repository-local conditional include. The contributor also reports a failing-first focused E2E, but this review did not independently execute it.

Review metrics: 1 noteworthy metric.

  • Patch scope: 2 files affected; 18 added, 4 removed. The implementation is limited to one Git credential lookup and its focused immutable server-merge fixture.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🌊 off-meta tidepool
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • none.

Next step before merge

  • [P2] The patch has no identified mechanical repair blocker, but repository policy requires explicit maintainer handling for MEMBER-authored pull requests.

Maintainer decision needed

  • Question: Should a repository maintainer merge this member-authored repair once the remaining required checks complete?
  • Rationale: Repository policy keeps MEMBER-authored pull requests open for explicit maintainer judgment even when the patch is otherwise narrow and appears correct.
  • Likely owner: hxy91819 — They are the repository-member author of the proposed repair and can provide any requested follow-up evidence.
  • Options:
    • Merge after checks (recommended): Merge the current focused repair if the remaining required checks pass and no maintainer review identifies an environment-specific regression.
    • Request runtime confirmation: Ask for a redacted immutable server-merge runtime transcript if maintainers want confirmation from the exact hosted checkout environment before merging.

Security
Cleared: The diff only changes local Git configuration lookup and a test fixture; it adds no dependency, workflow, permission, secret-handling, or external code-execution surface.

Review details

Best possible solution:

Merge the focused --includes --local repair after the remaining required checks complete, keeping the test fixture as regression coverage for actions/checkout v7 repository-local credential includes.

Do we have a high-confidence way to reproduce the issue?

Yes at source level: the pre-change command reads only entries directly visible in local config, while the supplied checkout v7 fixture places the header behind a repository-local conditional include. The contributor also reports a failing-first focused E2E, but this review did not independently execute it.

Is this the best way to solve the issue?

Yes. Adding --includes while retaining --local is the narrowest maintainable fix because it follows the repository-local include selected by checkout without expanding lookup to user or system credential configuration.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against f986d7f54cdc.

Label changes

Label changes:

  • add P2: This addresses a bounded repair-lane failure that can prevent the server-merge fallback from authenticating, with limited blast radius outside that workflow.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The author is a repository MEMBER, so the external-contributor real-behavior-proof gate does not apply; the PR body nevertheless reports focused after-fix E2E and check results.

Label justifications:

  • P2: This addresses a bounded repair-lane failure that can prevent the server-merge fallback from authenticating, with limited blast radius outside that workflow.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The author is a repository MEMBER, so the external-contributor real-behavior-proof gate does not apply; the PR body nevertheless reports focused after-fix E2E and check results.
Evidence reviewed

What I checked:

  • Credential lookup change: The PR changes the state-token lookup from local config only to git config --includes --local, which reads a repository-local conditional include while retaining the existing local-scope boundary. (src/repair/git-publish.ts:492, ef4a7e6cc693)
  • Checkout v7 fixture coverage: The test helper now writes the GitHub extraheader into a separate credentials config and attaches it through includeIf.gitdir, directly covering the reported checkout v7 credential layout. (test/repair/git-publish.test.ts:2891, ef4a7e6cc693)
  • Contributor verification: The PR description reports a failing-first immutable server-merge E2E on current main, a passing focused E2E after the change, the enclosing repair test file, and pnpm run check; no conflicting maintainer review note or review finding is present in the supplied context. (ef4a7e6cc693)

Likely related people:

  • hxy91819: Authored the focused credential-lookup change and its corresponding immutable server-merge fixture; repository history could not be independently queried during this read-only review. (role: proposed repair author; confidence: low; commits: ef4a7e6cc693; files: src/repair/git-publish.ts, test/repair/git-publish.test.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@hxy91819
hxy91819 merged commit 639d459 into main Jul 19, 2026
12 checks passed
@hxy91819
hxy91819 deleted the feature/checkout-v7-state-credentials branch July 19, 2026 11:52
azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant