Repository navigation
Commit b1104ba
Use the Markdown API workaround for GitHub App tokens and repo-scoped image URLs
GitHub App installation tokens get the same 404 as fine-grained PATs when
downloading attachments from private repositories (#477), but the workaround
was only used with -f. Older github.com/{owner}/{repo}/assets/* image URLs
also 404 with both token types and render to the same JWT-signed URLs.
Move the check into needs_jwt_workaround() so it can be tested directly,
and pass the current token from get_auth() so App tokens are refreshed.
The README now also notes that the workaround needs read access to
contents: without it, POST /markdown returns 200 but leaves the image URLs
unsigned.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JefeUY9THfz2WzRtBGEP3U1 parent 14b733c commit b1104ba
3 files changed
Lines changed: 95 additions & 46 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
| 317 | + | |
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1420 | 1420 | | |
1421 | 1421 | | |
1422 | 1422 | | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
1423 | 1442 | | |
1424 | 1443 | | |
1425 | 1444 | | |
1426 | 1445 | | |
1427 | 1446 | | |
1428 | 1447 | | |
1429 | 1448 | | |
1430 | | - | |
1431 | | - | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
1432 | 1452 | | |
1433 | 1453 | | |
1434 | 1454 | | |
1435 | 1455 | | |
1436 | 1456 | | |
1437 | 1457 | | |
1438 | 1458 | | |
1439 | | - | |
1440 | | - | |
| 1459 | + | |
| 1460 | + | |
1441 | 1461 | | |
1442 | 1462 | | |
1443 | 1463 | | |
| |||
1832 | 1852 | | |
1833 | 1853 | | |
1834 | 1854 | | |
1835 | | - | |
1836 | | - | |
1837 | | - | |
1838 | | - | |
1839 | | - | |
1840 | | - | |
1841 | | - | |
1842 | | - | |
1843 | | - | |
1844 | | - | |
| 1855 | + | |
1845 | 1856 | | |
1846 | 1857 | | |
1847 | 1858 | | |
| |||
1851 | 1862 | | |
1852 | 1863 | | |
1853 | 1864 | | |
1854 | | - | |
| 1865 | + | |
1855 | 1866 | | |
1856 | 1867 | | |
1857 | 1868 | | |
| |||
1865 | 1876 | | |
1866 | 1877 | | |
1867 | 1878 | | |
1868 | | - | |
1869 | | - | |
| 1879 | + | |
| 1880 | + | |
1870 | 1881 | | |
1871 | 1882 | | |
1872 | 1883 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
416 | 441 | | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
424 | 455 | | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
430 | 460 | | |
431 | | - | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
432 | 470 | | |
433 | 471 | | |
434 | 472 | | |
| |||
0 commit comments