Skip to content

Commit e6e7f56

Browse files
Merge pull request #205 from BitHighlander/agent/copilot-review-fork-safety
fix(ci): request reviews safely for fork PRs
2 parents 98a83ef + f8311c2 commit e6e7f56

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎.github/workflows/copilot-review.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
name: Request Copilot Review
22

33
on:
4-
pull_request:
4+
# This workflow never checks out or executes pull-request code. Using the
5+
# base-repository context is therefore safe and is required for cross-fork
6+
# PRs, whose pull_request GITHUB_TOKEN is always downgraded to read-only.
7+
pull_request_target:
58
types: [opened, reopened, ready_for_review, synchronize]
69

710
jobs:
811
request-copilot-review:
12+
if: github.event.pull_request.draft == false
913
runs-on: ubuntu-latest
1014
permissions:
1115
pull-requests: write

0 commit comments

Comments
 (0)