Skip to content

fix(ci): allow unsafe pr checkout for ai-review workflow - #134

Merged
b3nw merged 1 commit into
devfrom
fix/ci-ai-review-checkout
Sep 5, 2026
Merged

b3nw merged 1 commit into
devfrom
fix/ci-ai-review-checkout

Conversation

@b3nw

@b3nw b3nw commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Sets allow-unsafe-pr-checkout: true on actions/checkout in ai-review.yml to allow checking out fork PRs in pull_request_target.

@b3nw
b3nw merged commit 4bfb5ff into dev Sep 5, 2026
1 check passed
@b3nw
b3nw deleted the fix/ci-ai-review-checkout branch September 5, 2026 14:29
# Fetch full history so git diff operates correctly
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
allow-unsafe-pr-checkout: true

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this unsupported actions/checkout input, which is ignored and may create a false impression that unsafe PR checkout is explicitly controlled.

#ai-review-inline

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

The stack metadata is updated consistently with the workflow change. However, enabling unsafe checkout of untrusted fork code in a pull_request_target workflow creates a significant security risk because the job may retain privileged tokens or secrets; use a read-only pull_request workflow or isolate the untrusted checkout from any privileged review/reporting step.

#ai-review-summary

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.

2 participants