Commit 9e3113e
Two CI workflows failed whenever a PR came from a fork because the
pull_request trigger runs in a sandboxed context with no write access
and no secrets:
- Changelog Preview: switched pull_request → pull_request_target so the
workflow runs in the base repo context and can post PR comments.
Also tightened permissions from contents:write to contents:read since
the workflow only needs to write to pull-requests.
- Format Code: pull_request_target cannot push to a fork branch anyway,
so the fix is fork-aware logic in the commit step. For fork PRs,
formatting issues fail the check with a clear message telling the
contributor which dotnet format command to run locally. Internal PR
behaviour (auto-commit and push) is unchanged.
Warden was also listed as failing but is already resolved — warden.yml
was removed because Warden is now a globally-enabled GitHub App with
its own credentials, unaffected by fork PR restrictions.
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 388121c commit 9e3113e
2 files changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
57 | 60 | | |
58 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
0 commit comments