Skip to content

[Schema Inaccuracy] Some conditions of "Download step logs for a workflow run job" availability seem to be missing #7369

Open

Description

@Jackenmen

Schema Inaccuracy

Based on the documentation of the "Download step logs for a workflow run job" endpoint, I expected to be able to get logs of a step in a GitHub Actions workflow run job by specifying the job ID and step number:
https://docs.github.com/en/rest/actions/workflow-jobs?apiVersion=2026-03-10#download-step-logs-for-a-workflow-run-job

However, all I'm getting is a 404, even though I got the step number directly from the list of steps given by the API in the "Get a job for a workflow run" endpoint:

{
  "message": "Not Found",
  "documentation_url": "https://docs.github.com/rest/actions/workflow-jobs#download-step-logs-for-a-workflow-run-job",
  "status": "404"
}

Expected

I expected to get 302 Found response with a Location header when specifying valid job ID and step number.

Reproduction Steps

The token used is a fine-grained user token with "Actions" repository permission per the documentation:
Image
though per the documentation, I would also expect this endpoint to work without authentication as well since the repository is public.
Here's the command I ran (replacing github_pat_... with a valid token)

$ curl -H 'Accept: application/vnd.github+json' -H 'X-GitHub-Api-Version: 2026-03-10' -H 'Authorization: Bearer github_pat_...' https://api.github.com/repos/Cog-Creators/Red-DiscordBot/actions/jobs/120221365038/steps/3/logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions