Skip to content

fix(ci): persist-credentials:false on auto path + document matcher semantics - #6

Merged
travisccook merged 1 commit into
mainfrom
fix/review-persist-credentials
Jul 6, 2026
Merged

fix(ci): persist-credentials:false on auto path + document matcher semantics#6
travisccook merged 1 commit into
mainfrom
fix/review-persist-credentials

Conversation

@travisccook

Copy link
Copy Markdown
Owner

Addresses the two follow-ups the automated review raised on PR #4 (workflow hardening):

  1. Consistency: persist-credentials: false was on the mention checkout but not the auto-review checkout. Added it there too. Low risk on the auto path (trusted in-repo PRs, short-lived token) but keeps the 'reviewed content must not reach tokens' invariant uniform. Safe — the checkout fetch already happened; git diff/log/show are local and gh pr comment uses GH_TOKEN.
  2. Docs: spec now explains why find -exec bypassed the allowlist (execution smuggled inside a single command word-list) while command substitution / chaining does not (the matcher parses those and requires each segment to be allowlisted).

…cher semantics

Follow-ups from PR #4's own automated review:
- Add persist-credentials:false to claude-review.yml's checkout for consistency with
  the mention path (low risk on the trusted in-repo path, but keeps the invariant).
- Document in the spec why find -exec is a bypass (single command word-list) while
  command substitution / chaining is NOT (the matcher parses those and requires each
  segment to be allowlisted).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@travisccook
travisccook merged commit 5217250 into main Jul 6, 2026
2 checks passed
@travisccook
travisccook deleted the fix/review-persist-credentials branch July 6, 2026 21:28
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.

1 participant