Commit 628dd68
committed
Fix job logs endpoint: use job ID instead of job index
The GetWorkflowJobLogs endpoint was incorrectly using
DownloadActionsRunJobLogsWithIndex which expects a job index (0, 1, 2...)
but we were passing a job ID (192).
Fixed by:
- Using GetRunJobByID to get the job by its actual ID
- Using DownloadActionsRunJobLogs instead of the index-based version
- Adding validation that the job belongs to the specified run
This resolves the 404 'Job logs not found' error in CI tests.1 parent 1788cfa commit 628dd68
1 file changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
685 | | - | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
686 | 702 | | |
687 | 703 | | |
688 | 704 | | |
| |||
0 commit comments