Commit 602b149
fix(ci): use pull_request_target for fork PR labeling (#585)
* fix(ci): use pull_request_target for fork PR labeling (#479)
Switch trigger from pull_request to pull_request_target so fork PRs
get a write-capable GITHUB_TOKEN. Replace git-diff squad detection
with GitHub API (pulls.listFiles) since pull_request_target does not
check out fork commits. Remove unnecessary checkout step.
Closes #479
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(ci): paginate listFiles to handle PRs with 100+ changed files
Use github.paginate() instead of a single API call to ensure squad
detection works even for large PRs.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(ci): detect squad file renames via previous_filename
Address CodeRabbit review: also check previous_filename for renames
moving files out of squads/, preventing policy bypass.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(ci): pin actions to SHA refs for pull_request_target security
Pin actions/labeler and actions/github-script to immutable commit SHAs
to prevent supply-chain attacks in the write-token context.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 7a3ea8a commit 602b149
1 file changed
+20
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 19 | | |
23 | | - | |
| 20 | + | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 26 | + | |
| 27 | + | |
41 | 28 | | |
42 | 29 | | |
43 | | - | |
44 | | - | |
| 30 | + | |
45 | 31 | | |
46 | 32 | | |
47 | | - | |
48 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
49 | 48 | | |
0 commit comments