You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The GitHub REST API endpoint for downloading individual workflow step logs consistently returns 404 Not Found, even for completed workflow jobs with valid job IDs and step numbers.
The corresponding job-level logs endpoint works successfully for the same jobs.
Affected endpoint
GET /repos/{owner}/{repo}/actions/jobs/{job_id}/steps/{step_number}/logs
Expected behaviour
According to the REST API documentation, this endpoint should return 302 Found and redirect to a downloadable log file for the specified step.
Actual behaviour
The endpoint consistently returns:
404 Not Found
Verification
I tested the following:
Confirmed the job exists using the workflow jobs API.
Confirmed the requested step number matches the number field returned in the job's steps array.
Tested after the workflow job had completed.
Tested using Octokit REST.js and an independent REST API client.
Tested API versions 2026-03-10 and 2022-11-28.
Verified that the job-level logs endpoint returns 200 OK and successfully downloads the complete logs.
Independent reproduction
Another developer independently reproduced the same behaviour using a public repository, including testing multiple step numbers and both API versions.
It's working now, I retested today (Nov 12). Finished steps return 302 with the log, also when job is still running. The job from #7369 which was 404 before also works now. No changelog about it as far as I see.
If you use gh api add --allow-escape-sequences, otherwise it don't print the log.
Activity
Nezhinskiy commentedon Nov 12, 2026
It's working now, I retested today (Nov 12). Finished steps return 302 with the log, also when job is still running. The job from #7369 which was 404 before also works now. No changelog about it as far as I see.
If you use
gh apiadd--allow-escape-sequences, otherwise it don't print the log.More here: https://github.com/orgs/community/discussions/75518#discussioncomment-19562148