Repository navigation
Commit 3d187db
fix(pr-comments): skip the comment for Dependabot pull requests too
is_fork_pr_with_readonly_token() compared head and base repositories, so a
Dependabot pull request, whose branch lives in the repository itself, went
on to the API with the read-only token GitHub hands Dependabot-triggered
pull_request runs, took a 403, and logged "Ensure your workflow grants
'pull-requests: write' permission" — advice the workflow had already
followed, on every Dependabot PR.
Treat GITHUB_ACTOR == dependabot[bot] as read-only under pull_request
(pull_request_target keeps its configured permissions, as for forks), so
Dependabot takes the same graceful skip as fork PRs, and word the warning
and the job-summary notice for both cases.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018xYa7m3qup5wyN5MaXFgf61 parent 073d579 commit 3d187db
3 files changed
Lines changed: 89 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1395 | 1395 | | |
1396 | 1396 | | |
1397 | 1397 | | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
1398 | 1402 | | |
1399 | | - | |
| 1403 | + | |
1400 | 1404 | | |
1401 | 1405 | | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
1402 | 1412 | | |
1403 | | - | |
| 1413 | + | |
1404 | 1414 | | |
1405 | | - | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
1406 | 1418 | | |
1407 | 1419 | | |
1408 | 1420 | | |
| |||
1471 | 1483 | | |
1472 | 1484 | | |
1473 | 1485 | | |
1474 | | - | |
1475 | | - | |
1476 | | - | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
1477 | 1489 | | |
1478 | 1490 | | |
1479 | | - | |
1480 | | - | |
1481 | | - | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
1482 | 1494 | | |
1483 | | - | |
| 1495 | + | |
1484 | 1496 | | |
1485 | 1497 | | |
1486 | 1498 | | |
1487 | 1499 | | |
1488 | 1500 | | |
1489 | 1501 | | |
1490 | 1502 | | |
1491 | | - | |
1492 | | - | |
1493 | | - | |
1494 | | - | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
1495 | 1508 | | |
1496 | 1509 | | |
1497 | 1510 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1843 | 1843 | | |
1844 | 1844 | | |
1845 | 1845 | | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
1846 | 1870 | | |
1847 | 1871 | | |
1848 | 1872 | | |
| |||
2089 | 2113 | | |
2090 | 2114 | | |
2091 | 2115 | | |
2092 | | - | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
| 2146 | + | |
| 2147 | + | |
| 2148 | + | |
| 2149 | + | |
2093 | 2150 | | |
2094 | 2151 | | |
2095 | 2152 | | |
| |||
0 commit comments