Skip to content

Commit 4bfb5ff

Browse files
b3nwclaw-io
andauthored
fix(ci): allow unsafe pr checkout for ai-review workflow
Co-authored-by: claw-io <273482092+claw-io@users.noreply.github.com>
1 parent 60df735 commit 4bfb5ff

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

.fork/features/ci.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,15 @@ Notes:
6969
- Adds fallback between Secrets and Variables for `LLM_PROXY_URL`, `LLM_PROXY_API_KEY`,
7070
and `LLM_PROXY_MODEL`.
7171
- Uses sensible fallback model `codex/gpt-5.6-sol` if `LLM_PROXY_MODEL` is empty.
72+
73+
## 2026-09-05 — Allow unsafe PR checkout in AI PR Review workflow
74+
75+
Branch: `fix/ci-ai-review-checkout`
76+
Files:
77+
- `.github/workflows/ai-review.yml`
78+
79+
Notes:
80+
- Sets `allow-unsafe-pr-checkout: true` on `actions/checkout@v4` in `ai-review.yml`.
81+
GitHub's `actions/checkout` requires this explicit opt-in when checking out
82+
fork PR refs under `pull_request_target`.
83+

.fork/stack.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ rules:
5656
- "feat(ci): fork-aware release notes with incremental topic diff"
5757
- "fix(ci): add AI PR review workflow"
5858
- "fix(ci): support fork PRs via pull_request_target in ai-review workflow"
59+
- "fix(ci): allow unsafe pr checkout for ai-review workflow"
5960
tooling:
6061
- "feat(tooling): add AGENTS.md and .agent/ config for linear stack workflow"
6162
- "fix(tooling): scope fork-stack gate to canonical branch and tolerate transient commits"

.github/workflows/ai-review.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
# Fetch full history so git diff operates correctly
4646
fetch-depth: 0
4747
ref: ${{ github.event.pull_request.head.sha }}
48+
allow-unsafe-pr-checkout: true
4849

4950
- name: Run AI Review
5051
uses: Nikita-Filonov/ai-review@v0.69.0

0 commit comments

Comments
 (0)